Monday 29 July 2013

What are the types of triggers and how the sequence of firing in text item

Triggers can be classified as Key Triggers, Mouse Triggers, Navigational Triggers, event triggers.
Key Triggers: Key Triggers are fired as a result of Key action. e.g. Key-next-field, Key-up, Key-Down
Mouse Triggers: Mouse Triggers are fired as a result of the mouse navigation. e.g. When-mouse-button-pressed, when-mouse-doubleclicked, etc
Navigational Triggers: These Triggers are fired as a result of Navigation. e.g.  Post-Text-item, Pre-text-item.
Event triggers: when–new-form-instance and when-new-block-instance.

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.

The sequence of firing in a text item is as follows:
    a) pre-text
    b) when_new_item
    c) key-next
    d) when_validate
    e) post_text

No comments:

Post a Comment