SetState Method
The SetState method provides an indicator to a customized PW to set a state to the associated DOM instances. If there are multiple DOM instances, use the index argument to retrieve the appropriate element. It uses the following syntax:
SetState(state, flag, index)
where:
state is one of the following values:
EDITABLE. Can be edited.
ENABLE. Is enabled.
SHOW. Is visible.
FOCUS. Is focussed.
flag indicates if the state should be reversed, and is one of the following values:
TRUE. The state should be reversed.
FALSE. The state should be maintained.
For example, if the state is set to EDITABLE, and the flag is set to TRUE, the value of state will be reversed to NON-EDITABLE.
index is a numerical value representing the row number of the DOM element of the control that is required.