Create a process that includes a JavaScript call to the xref lookup table: developer task

Any process that handles JavaScript can call an xref. Xref lookup calls can be direct (mapping based on source keys) or reverse lookup (mapping based on destination keys). For example:

Direct lookup call format:

xrefout=xref.lookup(<xreftable>,<source>,<destination>,<sourceValue0>,<sourceValue1>,...,<sourceValue9>);

Reverse lookup call format:

xrefout = xref.reverseLookup(<xreftable>, <source>, <destination>, <destinationValue0>, <destinationValue1>, ...., <destinationValue9>);

There is a limit of ten source values (0-9).

Example:

xref.lookup("CONOMAP", "sys1", "sys2", 2); //Call to the lookup table
val0=xref.values[0]; //Assign a variable the first destination value from the mapping
val1=xref.values[1]; //Assign a variable the second destination value from the mapping
value; // Return the concatenated result values from the xref mapping separated by ^^