putString
Add or replace a string in the global lookup table.
Note: Use the putPrivateString function if the lookup table has no ID. If the lookup table has an ID, use the putPrivateString function. For more information about the putPrivateString function, see putPrivateString on page 171.
Syntax
ogscript.putString (Lookup ID, Value);
Parameters
Parameter |
Type |
Required |
Description |
Lookup ID |
String |
Yes |
ID of the string to create or replace in the global lookup table. |
Value |
String |
Yes |
New value for the specified string. |
Returns
N/A
Example
This example uses the putString function to replace a datum in a lookup table. The lookup table definition for this example is as follows:
<lookup>
<entry key="Tom">television</entry>
</lookup>
The script to replace an entry in the lookup table is as follows:
//Replacethe string associated with entry key Tom ogscript.putString('Tom','telephone');