NXSL:map

From NetXMS Wiki
Revision as of 13:14, 22 November 2017 by TatjanaDubrovica (talk | contribs)
Jump to navigation Jump to search

Returns the value which corresponds to a specified key from specified Mapping Table


Syntax

map(tableName, keyName);


Parameters

tableName name of Mapping Table.
keyName name of the Key.

Return Value

Value corresponding for a keyName from tableName.

Examples

MyTable:

| MyKey1 | MyValue1 |
| MyKey2 | MyValue2 |
map("MyTable", "MyKey1")		->	returns "MyValue1"
myTable = "MyTable";
myKey = "MyKey1";
map(myTable, myKey)		->	returns "MyValue1"