Questions:
a. Is it possible to create a dropdown list on a page and have the values in that list based of some criteria. In short, dynamic drop down list ?
b. How do I change the order of translate value in drop down list for a field on a page try using peoplecode, by default it presents in ascending order?
a. Is it possible to create a dropdown list on a page and have the values in that list based of some criteria. In short, dynamic drop down list ?
b. How do I change the order of translate value in drop down list for a field on a page try using peoplecode, by default it presents in ascending order?
The quickest way to do it is to use PeopleCode to force your values in the list by using following 2 functions of Field class.
1. Field.ClearDropDownList(): It removes the current contents of the DDL.2. Field.AddDropDownItem([Value],[Descr]): It takes two string parameters,
[Value]: It is actual value which is mapped to the dropdown item
[Descr]: It is actual text which is visible as a dropdown item
Hi
ReplyDeleteafter loading the values , i need to get the description value and need to pass to a page .
Kindly tell any poperty otherthan a "Value"
Thanks,
Raghava