nxa.AddExtCustomItem

Description

This function adds a new Custom Item during the initialization phase of the server and returns its ID. In general, this function shall be used within the OnInitEvent callback only. Compared to the function nxa.AddCustomItem, the flags for Persistent, Historical, and Synchronziation can also be set.

Signature

string nxa.AddExtCustomItem (string, string, nxa.access, nxa.type, bool, bool, bool, string, string, string, ..., string)

Parameters

Name Type Mandatory/Optional Description
stringMname of the Custom Item
stringMdescription of the Custom Item
nxa.accessMaccess rights of the Custom Item
nxa.typeMthe data type of the Custom Item
boolMsets the persistent flag of the Custom Item
boolMsets the historical flag of the Custom Item
boolMsets the synchronization flag of the Custom Item
stringOdelimiter that is used to build the item ID (optional)
stringOpath1 (optional)
stringOpath2 (optional)
...
stringOpathN (optional)

Return

Type Description
stringitemID of the new Custom Item