pp108 : xforms-change

xforms-change

This event is fired when the value of business object is changed.

Event Information

To invoke

Change the value in a control which is bounded to a model and has a reference(xql).

Default Action

Initiates any action associated with the event.

Named Script

xforms-change

Event Object Properties

Property

Description

businessObject

Object that denotes the business object that is originally present in the Model data.

model

Object that denotes the model that fired the event.

srcElement

Denotes control whose value changed because of this change operation.

currentContext

The xml node under the business object which has multiple values whose value has been changed.

valid

Read only. Boolean that denotes whether the entered value is valid or not.

  • true: Default. Entered value is valid.
  • false: Entered value is not valid. The corresponding field is outlined in red color to highlight it, and a notification message displays.

An event handler can access the event object and its properties through the eventObject available as a parameter on the handler.

Remarks

For all controls, the onchange event fires when a value associated with a control is changed. However, for enumerated Select and List controls, this event fires when an option is added or removed.

Applies to

Model

Related reference

Current Context