8/16/2025 1:29:25 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.
|
|
|
|
Inserting picklists in SlxGrid
Posted: 07 Nov 08 4:44 AM
|
Ok, I don't know if this is the best way to do this, but I think I'll put my 2 cents...
I'm trying to insert a picklist column into a SlxDataGrid. I tried to use the picklist column, but I didn't managed to make it work.
I have a picklist field containing the code (shorttext), but I want to display the long description into the grid (text).
So I setup a custom format column and used this snippet as the FormatCode:
protected String getPickListDesc(Object code) { Sage.SalesLogix.PickLists.PickList pl = Sage.SalesLogix.PickLists.PickList.GetPickListItemByName("Picklist Name", code.ToString()); return (pl!=null) ? pl.Text: ""; }
The format method name is simply "getPickListDesc" (without quotes).
I don't know if this method is the right one, but at least it works... Is there a simpler/more efficient way to accomplish this?
|
|
|
|
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!
|
|
|
|
|
|
|
|