reload
Rebuild the user interface element with the specified ID. If the ID is for an <include> tag, re-fetch the included document before rebuilding the user interface.
If no ID is provided, rebuilds the entire document.
Syntax
ogscript.reload (User Interface ID);
Parameters
Parameter |
Type |
Required |
Description |
User Interface ID |
String |
Yes |
ID of the user interface element to rebuild. |
Returns
Null, if null is provided as the ID.
Example
In this example, the ogscript.reload function is used to rebuild a drop-down list to show new options.
//createa new array of colours
var color = new Array("Red","Green","Blue");
//populatethe dropdown color_list with the color array
params.replaceIdentifiedConstraint('color_list', params.createIntChoiceConstraint(color));
//reloadthe dropdown list to view the new options ogscript.reload('color_list');