updateGlobalPicklist
From LongJump Support Wiki
Update the attributes of a Global Picklist or its enumerated items. (This API replaces the existing definition with a new one.)
- Syntax
String updateGlobalPicklist(GlobalPicklistBean bean, String id) throws Exception
- Parameters
-
- com.platform.beans.GlobalPicklistBean - The object the specifies the global picklist
- id - The id of the global picklist to replace
- Returns
- A string containing the id of the global picklist
- Throws
- Exception
- Example
- This example ....
try { String id = "rty345uty678"; GlobalPicklistBean bean = Functions.getGlobalPicklist(id); bean.setSortFlag(false); //...make other changes... Functions.updateGlobalPicklist(bean, id); } catch (Exception e) { ... }
- Note: The API returns the ID as a string, but that value is typically ignored, since it had to be known in order to do an update in the first place.