|Re: firing sequence of triggers??????????? [message #230956 is a reply to message #230918]
||Fri, 13 April 2007 09:40
Registered: February 2006
hope this helps...|
Q) What are the types of triggers and what is sequence of firing ?
Triggers can be classified as Key Triggers, Mouse Triggers, Navigational Triggers,
1. Key Triggers: Key Triggers are fired as a result of Key action.
a) Key-next-Item: Tab or Enter.
b) Key-ExeQry: F8
c) Key-NxtBlk: Shift F5
d) Key-Commit: F10
2. Action Trigger: Trigger that get executed due to user interaction are called Action Triggers. action triggers are associated with specific objects.
a) When-Button-Pressed: Pressing a button.
b) When-CheckBox-Changed: Clicking a check box.
c) When-Image-Pressed: Clicking the image.
d) When-List-Changed: A List item is selected.
e) When-Radio-Changed: Clicking on a Radio Button.
f) When-Window-Activated: When focus is on a specific whindow.
g) When-Window-Closed- When a window is closed.
3. Mouse Triggers: Mouse Triggers are fired as a result of the mouse navigation.
4. Navigational Triggers: These Triggers are fired as a result of Navigation. for example when the cursor navigates out of a text item to another text item the Post-Text-Item trigger for the current text item and Pre-Text-Item trigger for the next text item it moves to will both fire
1 Pre-Text-Item and Post-Text-item.
We cannot call restricted procedures like go_to('my_block.first_item') in the Navigational
triggers but can use them in the Key-next-item.
The Difference between Key-next and Post-Text is an very important question. The key-next is
fired as a result of the key action while the post text is fired as a result of the
mouse movement. Key next will not fire unless there is a key event.
Example(1) The sequence of firing in a text item are as follows:
Example(2) If there are two text items in a block, say text1 and text2. If the focus is on text2 and user moves the cursor to text1 by doing shift tab, then which triggers will fire? In what order?
Example(3) As soon as form open in the memory, a series of navigational triggers are executed.
The sequence of trigger that fire when a form is invoked are as follows-