You need to sign in to do that
Don't have an account?
SS Karthick
Get lists of dependent picklist options in Apex
Hi folks,
Can anyone tell me how to get the list of dependent picklist options in apex?
My usecase is:
I have a pair of dependent picklists. In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field?
I’ve tried using getPicklistValues(), but there doesn’t seem to be any way of getting dependency information.
Thanks in advance
Karthick
Can anyone tell me how to get the list of dependent picklist options in apex?
My usecase is:
I have a pair of dependent picklists. In Apex code, how can I determine what options are valid in the dependent field for each option in the controlling field?
I’ve tried using getPicklistValues(), but there doesn’t seem to be any way of getting dependency information.
Thanks in advance
Karthick
1.tokens
2.schema methods
i schema methods use schema.describefieldresults and schema.describeobjectresults
All Answers
Haven't tried it. But maybe the info here might be of help ->
http://salesforce.stackexchange.com/questions/4462/get-lists-of-dependent-picklist-options-in-apex
Regards,
Lakshmi.
1.tokens
2.schema methods
i schema methods use schema.describefieldresults and schema.describeobjectresults