HD$ ScreenRefresh Method |
This function refreshes the screen to update answers in the variable fields that have changed.
JavaScript API: Embedded
Assembly: hotdocs.js Version: 1.0.0.0 (1.0.0.0)
Syntax
JavaScript
function ScreenRefresh(callback);
Parameters
- callback
- Type: function
A callback function.
Examples
The following JavaScript function calls AnsSetVal(String, Object, String, function) to set some answer values and then calls ScreenRefresh(function) to update the variable fields:
JavaScript
function SetVariables(index) { HD$.AnsSetVal("Employee Name",EmpName[index]); HD$.AnsSetVal("Employee Gender",EmpGender[index]); HD$.AnsSetVal("Employee Birth Date",new Date(EmpBirth[index])); HD$.ScreenRefresh(); }
See Also