Difference between revisions of "NXSL:map"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Returns the value which corresponds to a specified key from specified Mapping Table == Syntax == map(''"tableName"'', ''"keyName"''); == Parameters == :{| |- |...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Returns the value which corresponds to a specified key from specified Mapping Table
Returns the value which corresponds to a specified key from specified Mapping Table


Line 5: Line 5:
== Syntax ==
== Syntax ==


map(''"tableName"'', ''"keyName"'');
map(''tableName'', ''keyName'');




== Parameters ==
== Parameters ==


:{|
:{| class="wikitable"
|-
|-
| ''tableName'' || name of Mapping Table.
| ''tableName'' || name of Mapping Table.
Line 28: Line 28:


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

Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

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"