The custom code within your HTML extension object can use predefined and user-defined
You might have scripting that only specifies a portion of the name of the variable in the script. In these cases, you will need to specify the variable name in a comment. For example, if you are using CurrentDate in your script like this:
window['Var'+'CurrentDate'].getValue()
You must have the full JavaScript name of the variable in a comment somewhere in the script, for example:
//VarCurrentDate
To see the variables that are detected in your script, look in the Variable Manager. For details, see Using the Variable Manager.
To insert existing variables into the HTML extension object:
Do one of the following:
In the Project Explorer, double-click the graphic of the HTML extension object.
In the Project Explorer, right-click the graphic of the HTML extension object and select Properties.
In the Project Explorer, select the HTML extension object and press Enter.
In the work area, double-click the HTML extension object.
In the work area, right-click the HTML extension object and select Properties.
In the work area, select the HTML extension object and press Enter.
The Properties ribbon is displayed.
On the Properties ribbon, click Edit in the HTML Extension group. The Editor opens.
Use the Insert: Variables list to select an existing variable and use the Items list to select the appropriate object on the page. The existing variable you select is added to the script.
Click Save when you are finished editing the script.
The variables are associated with the HTML extension.
© Copyright ELB Learning 2025