What is the correct sequence of firing triggers in Forms1) Pre-form2)Pre-block3)When-new-form4)When-validate-item5)Post-block

Questions by nadh_kusuma

Showing Answers 1 - 31 of 31 Answers

Sethunath

  • Dec 9th, 2005
 

Pre-form
When-New-Form
Pre-Block
When-Validate-Item
Post-Block

sudhakar

  • Mar 8th, 2006
 

1) Pre-logon

2) On Logon

3) Post logon
4) Pre-form

5)When-new-form

6) pre-block

7)when-new-block-instance

8)when-new-item-instance

9)Post-block

10)post-form

  Was this answer useful?  Yes

What about the when-validate-item, key-next-item in case of text items, when-list-changed in case of lists or combo boxes... etc., where exactly these triggers will fit in the above sequence between when-new-block-instance and post-block or anywhere else? please clarify

  Was this answer useful?  Yes

Pre-logon
On Logon
Post logon
Pre-form
When-new-form-instance
pre-block
when-new-block-instance
when-new-item-instance
Pre-text-Item (first item in the block)
key-next-item
when-validate-item
post-change
Post-text-Item
Pre-text-Item (2nd item in the block)
..
..
Post-block
post-form

  Was this answer useful?  Yes

Hemal Deshmukh

  • Sep 7th, 2006
 

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.

Shyam Kumar Sinha

  • Oct 6th, 2006
 

Pre-logon
On Logon
Post logon
Pre-form
pre-block
Pre-text-Item (1st item in the block)
When-new-form-instance
when-new-block-instance
when-new-item-instance

after this what is written on when-validate-item item

if succeed

key-next-item
post-change
Post-text-Item
Pre-text-Item (2nd item in the block)
when-validate-item

if not succeed

key-next-item
post-change
when-validate-item
Post-text-Item
Pre-text-Item (2nd item in the block)


..
..
Post-block
post-form
 

Officer(IT), NHPC

Chandra K. Ravi

  • Sep 5th, 2007
 

This Sequence is already correct...

1) Pre-form
2) Pre-block
3) When-new-form
4) When-validate-item
5) Post-block

Regards
Chandra
9969 6296 73

  Was this answer useful?  Yes

Opening new form and going to dept.deptno
--pre-logon (form level)
–post-logon (form level)
–pre-form (form level)
–pre-block (block level)
–pre-record (block level)
–pre-text-item (item level)
–when-new-form-instance (form level)
–when-new-block-instance (block level)
–when-new-record-instance (block level)
–when-new-item-instance (item level)

Going from one block to another block ( dept to emp )
–Dept.esal - when-validate-item
–Dept.esal - post-text-item
–Dept - when-validate-record
–Dept - post record
–Dept - post block

–emp - pre block
–emp - pre record
–emp.empno - pre-text-item
–emp - when new block instance
–emp - when-new-record instance
–emp.empno - when-new-item-instance

Item to item with in same block.. Empno to Ename
– empno - when-validate-item
– emono - post-text-item
– emono - key-next-item (if you press tab key )
– emono - key-prev-item (if you press shift tab key )
– ename - pre-text-item
– ename - when-new-item-instance

One record to new record with in same block
– emp.ename - post-text-item (record1)
– emp. - post-record ( record1 )
– emp. - pre-record (record2)
– emp.empno - pre-text-item (record2)
– emp - when-new-record-instance ( record2)
– emp.empno - when-new-item-instance (record2).

Closing a form
• emp.empno -when-validate-item
• emp.empno -post-text-item
• emp -post-record
• emp -post-block
• form -post-form
• form -pre-logout
• form -post-logout

  Was this answer useful?  Yes

dayakark

  • Feb 25th, 2017
 

Navigational triggers: -
These triggers fires when control navigating into the form or out the form, navigating between blocks. Navigating between blocks and navigating between items.

- Triggers firing from top to bottom.

PRE_LOGON - Fires before connecting to database.

ON_LOGON - At the time of connecting data base.

POST_LOGON - After connecting to data base.

PRE_FORM - Before going to load or appearing the form.

PRE_BLOCK - Before appearing block.

PRE_RECORD - Before appearing record.

PRE_ITEM - Before appearing item.

WHEN_NEW_FORM_INSTANCE - At the time of appearing form.

WHEN_NEW_BLOCK_INSTANCE - At the time of appearing block.

WHEN_NEW_RECORD_INSTANCE - At the time of appearing record.

WHEN_NEW_ITEM_INSTANCE - At the time of appearing item.

KEY_NEXT_ITEM - It fires when pressed tab key.

WHEN_VALIDATE_ITEM - Before leaving item.

WHEN_VALIDATE_RECORD - Before leaving record.

POST_RECORD - After leaving from the record.

POST_BLOCK - After leaving a block.

POST_FORM - After leaving form.

POST_FORM_COMMIT - After leaving from (to save the record).

PRE_LOGOUT - Fire before disconnecting from data base.

ON_LOGOUT - At the time disconnecting from data base.

POST_LOGOUT - After disconnecting from data base.

  Was this answer useful?  Yes

kamaraj

  • Dec 16th, 2018
 

1) Pre-form
2)When-new-form
3)Pre-block
4)When-validate-item
5)Post-block

  Was this answer useful?  Yes

kamaraj

  • Dec 16th, 2018
 

1) Pre-logon
2) On Logon
3) Post logon
4) Pre-form
5)When-new-form
6) pre-block
7)when-new-block-instance
8)when-new-item-instance
9)when_validate_item
10)Key_next_item
11)post_text_iem
12)Post-block
13)post-form

  Was this answer useful?  Yes

kamaraj

  • Dec 16th, 2018
 

when-validate-item
key-next-item
post-change

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions