Wednesday, January 22, 2014

How to get the picklist value in Apex class

How to get the picklist value in Apex class

Using Dynamic apex, we can achieve this.on object of type pickilist, call getDescribe(). then call the getPicklistValues() method. iterate over result and create a list. bind it to <apex:selectOptions>.

No comments:

Post a Comment