Where does one find the documentation or list of default parameters or arguments passed to the build-in events in Servoy such as onDataChange?
I’ve looked in the documentation but haven’t been able to find these. For example onDataChange argument 1 and 2 is the old value and new value of a field.
onSearchCmd
arguments[0] : is clear
arguments[1] : is reduced
form events
onRecordEditStop
arguments[0] : edited record
onShow
arguments[0] : is first time show
form
rowBGColorCalculation
(function arguments)
arguments[0] : row number
arguments[1] : is selected
arguments[2] : cell element type
arguments[3] : cell data provider
arguments[4] : form name
arguments[5] : state
arguments[6] : is edited
(calculation arguments)
arguments[0] : row number
arguments[1] : is selected
arguments[2] : cell element type
arguments[3] : cell data provider
arguments[4] : is edited
field events
onDataChange
arguments[0] : old value
arguments[1] : new value
onDelete
arguments[0] : record that will be deleted
onInsert
arguments[0] : record that will be inserted
onUpdate
arguments[0] : record that will be updated
== tabpanel
onTabChangeMethodID
arguments[0] : index of tab shown before the change
== form
onSortCmd
arguments[0] : element data provider
arguments[1] : sort acscending [true] or descending [false]
== solution
onError
arguments[0] : exception to handle
onClose
arguments[0] : force flag
In Servoy 4.2 the properties view will be extended with arguments to the events.
All the servoy-generated arguments (like the ones above) will be listed when a method is attached to an event.
Additionally it will be possible to add custom values.
For instance, you can attach a method with 2 arguments to the onshow event of form x, the first argument is defined by servoy (a boolean indicating it is the first time), the value of the second argument can be configured for form x.