TRIGGER:
Attributes
If the previous trigger call returned any errors then abort running this, or any
further triggers (until the next event).
Value(s)
Default Value
true
When the event has been triggered, a confirmation box will appear that
asks whether or not to perform the trigger.
Value(s)
Default Value
false
The event is what to catch on. This could be
- default
- trigger return default value for widget ?
- beforepaint
- trigger runs before the user interface opens
- afterpaint
- trigger runs after the user interface opens
- click
- trigger runs on mouse click, menu item selection
- beforesave
- when saving a record
- afteresave
- when saving a record
- beforeinsert
- when saving new record
- aftereupdate
- when saving changes to a record
- aftereinsert
- when saving new record
- aftereupdate
- when saving changes to a record
- emptyrecordset
- when the form containd no records
- newrecord
- when a new record is added
- change
- value was changed (during editing)
- entry
-
- keypress
- wherever a key is pressed
- exit
-
- select
-
- gridedit
-
- open
- unimplemented
- close
-
- add
-
- delete
-
- timer
- periodic timer event
- notify
- database notify event
default, change, entry, exit,
click, beforepaint, afterpaint, beforesave, aftersave, select, open, close,
add or delete. Not all of these have been implimented and clicked and
select are the two most commonly used ones.
Value(s)
- default
- change
- entry
- exit
- click
- keypress
- beforepaint
- afterpaint
- beforesave
- aftersave
- select
- gridedit
- open
- close
- add
- delete
- emptyrecordset
- newrecord
- timer
- notify
- beforeinsert
- beforeupdate
- afterinsert
- afterupdate
- none
Default Value
#REQUIRED
Value(s)
CDATA
Default Value
#IMPLIED
For triggers on notify events only, this configures the type of notification to respond to. The name of the notification should be specified using the value attribute, which this attribute configures the appropriate source of notifications.
Possible values include
- local: only trigger on events which are triggered by the local connection
- remote: only trigger on events which are triggered by other connections
- all: trigger on all events, remote or local
Value(s)
Default Value
local
A "timer" trigger event can be set to be called after so much time on a form
when its open. timerinterval specifies how many seconds between the trigger
beeing activiated. This is useful for windows you want to automatically refresh.
Value(s)
CDATA
Default Value
0
if true wrap the livesql in a begin-end transaction
Value(s)
Default Value
false
notify value look for in an event="notify" trigger (else unused)
notify triggers are useful to refresh 'status' windows etc...
Value(s)
CDATA
Default Value
#IMPLIED
Back to TRIGGER
bond-2.1 DTD