Show / Hide Table of Contents

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
NSMDOAgent
Examples
NSMDOAgent agent;
agent.callMethod(arg1, arg2);

Methods

GetList(String,Bool,String,Bool)

Gets an MDO list.

Declaration
NSMDOListItem[] GetList(String name, Bool forceFlatList, String additionalInfo, Bool onlyHistory)
Parameters
Type Name Description
String name
Bool forceFlatList
String additionalInfo
Bool onlyHistory
Returns
Type Description
NSMDOListItem[]
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
Type Description
Integer
Remarks

Not all lists have such an ID, but those that are based on tables do (the list name is then the same as the table name)

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
Type Name Description
String listName
Integer id
Returns
Type Description
NSMDOListItem
Examples
NSMDOAgent agent;
String listName;
Integer id;
NSMDOListItem res = agent.GetListItem(listName, id);

GetListNames()

Returns a list of all MDO List names.

Declaration
String[] GetListNames()
Returns
Type Description
String[]
Remarks

These names can also be used with the Archive agent as ProviderNames.

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
Type Name Description
String name
Bool forceFlatList
String additionalInfo
Integer[] historyItems
Bool onlyHistory
Returns
Type Description
NSMDOListItem[]
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
Type Name Description
String name
String additionalInfo
String searchValue
Returns
Type Description
NSMDOListItem[]
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
Type Name Description
String name
Bool forceFlatList
String additionalInfo
Bool onlyHistory
Returns
Type Description
NSSelectableMDOListItem[]
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
Type Name Description
String name
Bool forceFlatList
String additionalInfo
Integer[] historyItems
Bool onlyHistory
Returns
Type Description
NSSelectableMDOListItem[]
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
Type Name Description
String name
String additionalInfo
String searchValue
Returns
Type Description
NSSelectableMDOListItem[]
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
Type Description
NSSelectableMDOListItem[]
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
Type Description
NSMDOListItem[]
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
Type Name Description
String name
String additionalInfo
Returns
Type Description
NSSelectableMDOListItem[]
Examples
NSMDOAgent agent;
String name;
String additionalInfo;
NSSelectableMDOListItem[] selectableMDOList;
NSSelectableMDOListItem[] res = agent.SetSelected(name, additionalInfo, selectableMDOList);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top