getGlobalPicklist
From AgileApps Support Wiki
Revision as of 20:15, 23 December 2010 by imported>Aeric
Retrieve details of a Global Picklist and it's Enumerated values.
- Syntax
- <syntaxhighlight lang="java" enclose="div">
GlobalPicklistBean getGlobalPicklist(String id) throws Exception
</syntaxhighlight>
- Parameters
-
- id
- The global picklist identifier
- Returns
- com.platform.beans.GlobalPicklistBean containing the global picklist specification
- Throws
- Exception
- Example
- This example lists the enumeration values for a global picklist.
- <syntaxhighlight lang="java" enclose="div">
try {
String id = "wer567uty789"; GlobalPicklistBean bean = Functions.getGlobalPicklist("wer567uty789"); String title = bean.getTitle(); List<EnumerationItemBean> items = bean.getEnumerationItems(); for (EnumerationItemBean e : items ) { Functions.debug("Label : " + e.getPicklistLabel() + " Value : " + e.getPicklistValue()); }
} catch (Exception e) {
...
} </syntaxhighlight>