Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Picklists, AllowMultiples, Codes and Commas. Dumb problem
Alberto Chiesa
Posts: 49
 
Picklists, AllowMultiples, Codes and Commas. Dumb problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Picklists, AllowMultiples, Codes and Commas. Dumb problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
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....
[Reply][Quote]
Alberto Chiesa
Posts: 49
 
Re: Picklists, AllowMultiples, Codes and Commas. Dumb problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Sep 09 8:39 AM
Hi Raul,
I came exactly to the same methods using Reflector and thought it's dead wrong

I was wondering if someone else did find a workaround... probably not.

BTW, anyone can figure out WHY is it as it is?
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Picklists, AllowMultiples, Codes and Commas. Dumb problemYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Sep 09 7:15 AM
Workaround would be to create your custom Picklist Control.

I honestly don't know why they forced this, seems to have been done on purpose, so there must be a good explanation for it.
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/4/2025 10:24:15 AM