What is the correct sequence of firing triggers in Forms
1) Pre-form
2)Pre-block
3)When-new-form
4)When-validate-item
5)Post-block
Suppose we open a form then the following triggers are executed:-
- PRE-LOGON
- ON-LOGON
- POST-LOGON
- PRE-FORM
- PRE-BLOCK
- WHEN-NEW-FORM-INSTANCE
- WHEN-NEW-BLOCK-INSTANCE
- WHEN-NEW-ITEM-INSTANCE
- Now the cursor is placed on the first item of the Block.
- Suppose if we type some data and press the Tab key then the following sequence of triggers fires:-
- KEY-NEXT-ITEM (This trigger is present on the item level).
- POST-CHANGE (This trigger is present on the item level).
- WHEN-VALIDATE-ITEM (This trigger is present on the item level).
- POST-TEXT-ITEM (This trigger is present on the item level).
- WHEN-NEW-ITEM-INSTANCE (Block Level Trigger).
- The cursor goes to the next item present on the screen.
- If suppose there are no further items present on the screen them if we enter data and press tab key then only KEY-NEXT-ITEM is fired. Now suppose we close the form then the item level triggers (explained above) are fired.
- POST-BLOCK
- POST-FORM
- Now the form gets closed.
0 comments:
Post a Comment