webtrigger OnChange

Use this trigger to program behavior when data in the DSP widget is interactively changed by the user. The trigger is not activated when data is changed by the Uniface JavaScript API.

Declaration:
webtriggeronChange
Optional scope block
Optional variables block
javascript
Javascript to implement the client-side trigger
endjavascript
end

- or -

triggeronChange
public web
Optional scope block
Optional variables block
Proc code to implement a server-side trigger
end
Parameters: None
Applies to: DSP widgets:
Activation: Activated when the DSP widget is changed in the browser.
Default behavior: None
Behavior upon completion: None

Description

The onChange trigger may be fired more than once for the Datepicker widget, or any native HTML5 controls, such as for Time, Datetime-Local, Week, Month, which are mapped to the Uniface physical widget htmlinput with html:type set to date.

The user interface used by the browser to display the date picker determines when the onChange trigger is fired. For example, in Chrome and Firefox, the onChange trigger is fired every time a day, month, or year is changed, whereas in Edge, it is fired only when the check box is clicked.

Tip: If you want to get the Datepicker value that was changed by the user, use the onBlur trigger rather than the onChange trigger.