by rgansevles » Mon Feb 16, 2009 10:17 am
Some more events:
== table
- onDelete
arguments[0] <Record> : record that will be deleted
- onInsert
arguments[0] <Record> : record that will be inserted
- onUpdate
arguments[0] <Record> : record that will be updated
== tabpanel
- onTabChangeMethodID
arguments[0] <Number> : index of tab shown before the change
== form
- onSortCmd
arguments[0] <String> : element data provider
arguments[1] <Boolean> : sort acscending [true] or descending [false]
== solution
- onError
arguments[0] <Exception> : exception to handle
- onClose
arguments[0] <Boolean> : 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.
Rob
Rob Gansevles
Servoy