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!
|
|
Custom Sub Picklist
Posted: 11 Aug 08 9:46 AM
|
I'm trying to get a custom sub picklist to work through the web client. Can anyone give me a quick idea as to how this can be accomplished?
I have my picklists all set up and figured I could simply put a Refresh Data action on the parent picklist control and then put code somewhere that assigns the child picklist name like this:
SubPicklist.PicklistName = "Parent Picklist " & Account.ParentPicklist
But not sure where the code goes so that it will fire on the Refresh Data action. Any help would be greatly appreciated.
Thanks. |
|
|
|
Re: Custom Sub Picklist
Posted: 11 Aug 08 1:07 PM
|
Your code will need to go in the "Load Action" of the form. The "Load Action" is called by the "Refresh Data" action.
You could make it easier if the pick list Items in the pick list A exactly match the pick lists in B by name:
On pick list A set the OnChange action to "Refresh Data"
On pick list B don't set the PickListName property and instead go into the DataBindings and map the PickListName to the property that Pick List A is bound to.
Cheers,
Steve |
|
|
|
Re: Custom Sub Picklist
Posted: 11 Aug 08 5:00 PM
|
That looks like a neat trick and way easier than what I was attempting, although if I remove the PickListName property from pick list B I get an error in the web client "PickListId or PickListName property must have a value for control".
I tried setting the PickListName property on pick list B but still got the error. Any additional help would be appreciated. I would love to get this working.
Thanks. |
|
|
|
Re: Custom Sub Picklist
Posted: 12 Aug 08 3:45 AM
|
I have just retested this and it appears ok here. I am testing this on SLX Web 7.2.2.1902
I did a variance of the Account Type and Sub Type pick lists on the Account Detail form.
On Pick List A: Used the Account Type PickListName. Bound the picklist control to the Entity.Type property to the PickListValue in the databindings. Set the On Change Action to "Refresh Data"
On Pick List B: Bound the picklist control to the Entity.SubType to the PickListValue in the databindings Bound the Entity.Type to the PickListName in the databindings Set the On Repaint Event to "True"
This did work. I didn't set any other properties on the Pick Lists properties e.g. Required or Sort. |
|
|
|