Events are declared with
global functions
end global
With definition of the function the event is registered
It's only possible to create one function per event. If you create the same function second time, you overwrite the first one.
window events
Open window process |
|
form (the frame of the window) opened. Only 1 time |
|
form_preload |
before initialize the dw_1. executed if you switch between tabs |
form_readsql |
Check SQL command behind a datawindow |
dw_1_load |
Directly after retrieve Data for dw_1 |
form_load |
directly after loading data for the form |
after loading the form |
|
form_show |
end of opening window process |
form loaded, show complete window |
|
Other Form processes |
|
form_resize |
size of window changed |
form_rowfocuschange |
row in dw_1 before change |
form_rowfocuschanged |
row in dw_1 changed |
form_new |
window opened in new mode |
form_update |
update start |
form_updated |
after update window |
form_close |
close start |
form_closed |
closing |
form_delete |
Form delete command - while deleting |
form_deleted |
form delete command - after deleting |
Tab Events
if a window has tab inside the document (not the tab on top) then follow events available
In most of windows the tab declared with the name "etab"
Event |
Description |
etab_firstredraw |
While the first redraw of the tab This is the best event to insert or change own objects |
etab_redraw |
paint etab object |
etab_tabchanged |
tab changed |
datawindow events
Datawindow dw_1 - dw_7 have own event system. All events start with dw_[number]_, example dw_1_load
In this table we show all events for dw_1
Event |
Description |
dw_1_load |
|
dw_1_windowsetting |
|
dw_1_rowfocuschanging |
while row focus changing |
dw_1_click |
|
dw_1_item_[column]_click |
|
dw_1_itemchanged |
|
dw_1_item_[column]_itemchanged |
|
dw_1_update |
|
dw_1_updated |
|
dw_1_rightclick |
|
dw_1_item_[column]_rightclick |
|
dw_1_inserted |
|
dw_1_delete |
|
dw_1_deleted |
datawindow dw_master
dw_master is the master frame of the document. This present all buttons (top, right, bottom) and the right mouse click popup menu functions
Event |
Description |
dw_master_item_button_[object]_click |
clicked on a button or right mouse click |
dw_master_click |
clicked on an element from dw_master |
dw_master_item_b_tab_[x]_click |
clicked on master tab x |
Other special events
Event |
Description |
syskeyclicked |
Key clicked |
rte_modofied |
Richtext element changed |
Note:
The system execute many other events with "windowevent" or functionname(), which you can see in debug log. This is only for compatibility to old beas versions.