Class NSMDOAgent
MDO Lists, reading, searching, and item lookup.
Syntax
Examples
NSMDOAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSMDOAgent()
MDO Lists, reading, searching, and item lookup.
Declaration
Examples
NSMDOAgent agent;
agent.callMethod(arg1, arg2);
Methods
GetList(String,Bool,String,Bool)
Declaration
NSMDOListItem[] GetList(String name, Bool forceFlatList, String additionalInfo, Bool onlyHistory)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
Bool forceFlatList;
String additionalInfo;
Bool onlyHistory;
NSMDOListItem[] res = agent.GetList(name, forceFlatList, additionalInfo, onlyHistory);
GetListIdByListName(String)
Retrieves the UdListDefinition ID of a list, by its name.
Declaration
Integer GetListIdByListName(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Examples
NSMDOAgent agent;
String name;
Integer res = agent.GetListIdByListName(name);
GetListItem(String,Integer)
Returns a single list item
Declaration
NSMDOListItem GetListItem(String listName, Integer id)
Parameters
Returns
Examples
NSMDOAgent agent;
String listName;
Integer id;
NSMDOListItem res = agent.GetListItem(listName, id);
GetListNames()
Returns a list of all MDO List names.
Declaration
Returns
Examples
NSMDOAgent agent;
String[] res = agent.GetListNames();
GetListWithHistory(String,Bool,String,Integer[],Bool)
Get an MDO list with own history list.
Declaration
NSMDOListItem[] GetListWithHistory(String name, Bool forceFlatList, String additionalInfo, Integer[] historyItems, Bool onlyHistory)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
Bool forceFlatList;
String additionalInfo;
Integer[] historyItems;
Bool onlyHistory;
NSMDOListItem[] res = agent.GetListWithHistory(name, forceFlatList, additionalInfo, historyItems, onlyHistory);
GetListWithRestriction(String,String,String)
Gets an MDO list with restrictions.
Declaration
NSMDOListItem[] GetListWithRestriction(String name, String additionalInfo, String searchValue)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
String additionalInfo;
String searchValue;
NSMDOListItem[] res = agent.GetListWithRestriction(name, additionalInfo, searchValue);
GetSelectableList(String,Bool,String,Bool)
Gets a Selectable MDO list.
Declaration
NSSelectableMDOListItem[] GetSelectableList(String name, Bool forceFlatList, String additionalInfo, Bool onlyHistory)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
Bool forceFlatList;
String additionalInfo;
Bool onlyHistory;
NSSelectableMDOListItem[] res = agent.GetSelectableList(name, forceFlatList, additionalInfo, onlyHistory);
GetSelectableListWithHistory(String,Bool,String,Integer[],Bool)
Gets a Selectable MDO list with own history list.
Declaration
NSSelectableMDOListItem[] GetSelectableListWithHistory(String name, Bool forceFlatList, String additionalInfo, Integer[] historyItems, Bool onlyHistory)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
Bool forceFlatList;
String additionalInfo;
Integer[] historyItems;
Bool onlyHistory;
NSSelectableMDOListItem[] res = agent.GetSelectableListWithHistory(name, forceFlatList, additionalInfo, historyItems, onlyHistory);
GetSelectableListWithRestriction(String,String,String)
Gets a Selectable MDO list with restrictions.
Declaration
NSSelectableMDOListItem[] GetSelectableListWithRestriction(String name, String additionalInfo, String searchValue)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
String additionalInfo;
String searchValue;
NSSelectableMDOListItem[] res = agent.GetSelectableListWithRestriction(name, additionalInfo, searchValue);
GetSelectableSimpleList(String)
Returns a flat Selectable MDO List.
Declaration
NSSelectableMDOListItem[] GetSelectableSimpleList(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Examples
NSMDOAgent agent;
String name;
NSSelectableMDOListItem[] res = agent.GetSelectableSimpleList(name);
GetSimpleList(String)
Returns a simple flat MDO List.
Declaration
NSMDOListItem[] GetSimpleList(String name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Examples
NSMDOAgent agent;
String name;
NSMDOListItem[] res = agent.GetSimpleList(name);
SetSelected(String,String)
Saves the selected values as selected by their given list representation.
Declaration
NSSelectableMDOListItem[] SetSelected(String name, String additionalInfo, NSSelectableMDOListItem[] selectableMDOList)
Parameters
Returns
Examples
NSMDOAgent agent;
String name;
String additionalInfo;
NSSelectableMDOListItem[] selectableMDOList;
NSSelectableMDOListItem[] res = agent.SetSelected(name, additionalInfo, selectableMDOList);