7/4/2025 9:31:22 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Picklists, AllowMultiples, Codes and Commas. Dumb problem
Posted: 16 Sep 09 3:04 AM
|
Hi everyone.
I'm experimenting with a loooong picklist with a list of countries. The picklist is a multiple selectable one (I must select a bunch of country from the list).
Now, the problem: I noticed that, even if I select "Code" as StorageMode, the Picklist is retaining the "Text" values. Because I have an item "Hong Kong, S.A.R.", with a comma in it, the Picklist is not reading the correct values (the dumb control searches for "Hong Kong" and "S.A.R.", which are not in the list, obviously).
Now, please don't tell me that I should not have a comma in a picklist DESCRIPTION, because it's a dumb requirement and the data is provided by the customer.
Everything would be fine if the picklist control could work with CODE StorageMode (setting the code to some shorter, simpler value).
Anyone knows something about this problem? Every possible hint or additional info would be greatly appreciated.
Thanks in advance.
|
|
|
|
Re: Picklists, AllowMultiples, Codes and Commas. Dumb problem
Posted: 16 Sep 09 8:33 AM
|
I am not sure why this is done, seems to me as if this is wrong, but apparently the Web Picklist Control only allows you to store Multiples if the Storage Mode is Text. By using Reflector, I ran into the following code:
// When Setting AllowMultiples to True, the Storage Mode is forced to Text. public void set_AllowMultiples(bool value) { this.ViewState["AllowMultiples"] = value; if (value) { this.StorageMode = StorageModeEnum.Text; } }
//When setting the Storage Mode to Something Other than text, Allow Multiples is turned off public void set_StorageMode(StorageModeEnum value) { this.ViewState["StorageMode"] = value; if (value != StorageModeEnum.Text) { this.AllowMultiples = false; this.ValueStoredAsText = false; } }
So it seems as if you may need to remove that Comma from the Value.... |
|
|
| |
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|