OpenWGA 7.0 - TMLScript reference
WGAMethod :
getLookupKeys(lookupTable)
On object | WGA |
Usage |
Returns the keys of a Lookup table as List |
Description |
Use this method if you want to iterate over all elements of a lookup table. Retrieve the keys and then use table.get() for each key to return the corresponding value. For backward compatibility there still is a global function "getLookupKeys()" available whose use is discouraged since OpenWGA 5.3. |
Parameters |
table (Lookup table) The table |
Return value |
List of table keys |
Allowed in script types |
|
Examples |
Iterating all elements of a lookup table: var keys = getLookupKeys(myTable); |