0% found this document useful (0 votes)
706 views3 pages

Trigger Firing Sequence in D2K (Oracle Forms)

The document discusses the firing sequence of triggers in Oracle Forms (D2K). It explains that when a form is opened, logon triggers like pre-logon, on-logon, and post-logon are fired first. Then pre-form, pre-block, and pre-text triggers are fired. When new records are inserted, when-new-form, when-new-block, and when-new-item triggers fire. At the item level, key-next-item, post-change, when-validate-item, and post-text-item triggers can fire. When closing the form, post-block and post-form triggers fire last.

Uploaded by

ankur1040
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
706 views3 pages

Trigger Firing Sequence in D2K (Oracle Forms)

The document discusses the firing sequence of triggers in Oracle Forms (D2K). It explains that when a form is opened, logon triggers like pre-logon, on-logon, and post-logon are fired first. Then pre-form, pre-block, and pre-text triggers are fired. When new records are inserted, when-new-form, when-new-block, and when-new-item triggers fire. At the item level, key-next-item, post-change, when-validate-item, and post-text-item triggers can fire. When closing the form, post-block and post-form triggers fire last.

Uploaded by

ankur1040
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

23/09/2013

ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus interview questions): Trigger Firing sequence in D2K (Oracle Forms)

ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus interview questions)


THI S S I TE I S HE LP F U L F OR E V E R Y B ODY W HO I S I N TE R E S TE D I N LE A R N I N G N E W THI N GS A B OU T DA TA W A R E HOU S I N G/ OR A CLE / I N F OR MA TI CA / U N I X / D2 K A N D A LS O F OR THE ON E I S W HO I S P R E P A R I N G F OR I N TE R V I E W . I F Y OU W A N T A R TI CLE TO B E P U B LI S HE D ON CE R TA I N TOP I C THE N P LE A S E MA I L TO S U P P OR T@I TN I R V A N A S . COM. W E W I LL TR Y OU R B E S T TO P U B LI S H A R TI CLE ON THA T TOP I C.

F R I DA Y , 2 3 JA N U A R Y 2 009

Trigger Firing sequence in D2K (Oracle Forms)


T rigger Firing sequence: This is most important thing to understand in Oracle D2K Forms When y ou open a form following triggers are ex ecuted First Logon T riggers are fired 1 .PRE-LOGON 2.ON-LOGON 3.POST-LOGON After that Pre T riggers 4. PRE-FORM 5. PRE-BLOCK
A R TI CLE S CA TE GOR Y

6. PRE-TEXT After that WHEN-NEW T riggers 7 . WHEN-NEW-FORM-INSTANCE 8. WHEN-NEW-BLOCK-INSTANCE 9. WHEN-NEW-ITEM-INSTANCE After that IT EM Lev el T riggers After this focus is on the first item of the Block. If y ou ty pe some data and press the tab key following trigger will fire in sequence 1 0.KEY -NEXT-ITEM (This trigger is present on the item lev el).

Datawarehousing (3) Informatica (9) Informatica interv iew questions (3) Informatica Metadata Queries (3) Oracle (7 ) Oracle D2k (Forms/Reports) (1 ) Unix (3)

A R TI CLE S

1 1 .POST-CHANGE (This trigger is present on the item lev el). 1 2.WHEN-V ALIDATE-ITEM (This trigger is present on the item lev el). 1 3.POST-TEXT-ITEM (This trigger is present on the item lev el). 1 4.WHEN-NEW-ITEM-INSTANCE (Block Lev el Trigger). Now focus will go the nex t item present on the form. If 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 lev el triggers are fired. POST T RIGGERS 1 5.POST-BLOCK 1 6.POST-FORM Now the form will be closed.
P OS TE D B Y I TN I R V A N A S A T 04 :1 0 LA B E LS : OR A CLE D2 K ( F OR MS / R E P OR TS )

2009 (27 ) April (4) March (2) February (7 ) January (1 4) Informatica interv iew questions (Part 2) Informatica interv iew questions (Part 1 ) Trigger Firing sequence in D2K (Oracle Forms) Normalizer transformation (Working with V SAM sourc... All About Oracle Sy nony m New features of Informatica 8 Inline v iew Star V s Snowflake Schema Dimensional Data Modeling High Water Mark (Oracle) All About Oracle Sequences How to transpose data in Informatica Unix Handy Commands

5 CO MME NT S :

Sum an 6 April 2009 1 0:55 1 What is purpose and order of firing the following triggers - on fetch - on select First on-select then on-fetch trigger is fired . On-select is used to open and ex ecute database query . on-fetch can be used in conjunction with on-select to replace the processing that normally occur in

www.itnirvanas.com/2009/01/trigger-firing-sequence-in-d2k-oracle.html

1/3

23/09/2013

ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus interview questions): Trigger Firing sequence in D2K (Oracle Forms)
Difference between TRUNCATE and DELETE ex ecute query built in procedure 1 )On select fires first. On select fFires when Forms Dev eloper would normally ex ecute the open cursor parse and ex ecute phases of a query to identify Reply

Sum an 6 April 2009 1 0:56 12 Y ou can use the lex ical parameters at From clause but y ou hav e to use lex ical parameter as giv en below. SELECT 'last_name' client_last_name, 'first_name' client_first_name, 'mailing_address1 ' mailing_address, 'city ' city FROM dual WHERE 1 =2 &RGROUP1 In abov e query I hav e used 2 lex ical parameters and while calling the abov e report pass the &RGOUP1 v alues using the below statement. :RGROUP1 := 'UNION SELECT 'last_name' client_last_name, 'first_name' client_first_name, 'mailing_address1 ' mailing_address, 'city ' city FROM emp_det' Using the abov e method y ou can generate the dy namic query in the report.

Lex ical references is used to runtime dy namic where conditions. If y ou create query through query builder colon(:) must be used and this is used in after parameter form.

Y ou can use the lex ical parameters at From clause but y ou hav e to use lex ical parameter as giv en below.

SELECT 'last_name' client_last_name 'first_name' client_first_name 'mailing_address1 ' mailing_address 'city ' city FROM dual WHERE 1 2 &RGROUP1 In abov e query I hav e used 2 lex ical parameters and while calling the abov e report pass the &RGOUP1 v alues using the below statement. :RGROUP1 : 'UNION SELECT 'last_name' client_last_name 'first_name' client_first_name 'mailing_address1 ' mailing_address 'city ' city FROM emp_det' Using the abov e method y ou can generate the dy namic query in the report.

COP Y R I GHT

Tech Articles on Oracle/Informatica/Unix by http://www.itnirv anas.com is licensed under a Creativ e Commons Attribution 2.0 UK: England & Wales License.

12 Scroll bar on tab pages Can we add scroll bar at on all tab pages in a single canv as? If y es then how:

Y ou can put a Stacked Canv as on Tab Pages. A Stack Canv as can hav e Scroll Bars. Y ou Can hide and show the Stacked canv as according to requirements.

12 Open Form Ex ample Giv e an ex ample for open_form with parameter passing from one form to another form BEGIN CALL_FORM('FORM2' NO_HIDE DO_REPLACE -- replace menu NO_QUERY _ONLY SHARE_LIBRARY _DATA); END; look at the forms help for the differences between OPEN_FORM and

www.itnirvanas.com/2009/01/trigger-firing-sequence-in-d2k-oracle.html

2/3

23/09/2013

ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus interview questions): Trigger Firing sequence in D2K (Oracle Forms)
CALL_FORM. Reply

IT Nirv anas

8 April 2009 1 4:20

Thanks Suman for information prov ided.I will post these as articles. Reply

sheettal 1 6 February 201 2 05:06 If a user opens a form and after doing some transaction he closed the form. Then Write a sequence of from lev el trigger which will fire during opening and closing the form. Reply

naga Sandeep K 1 6 July 201 2 1 1 :31 how to hide scroll bar when form is running Reply

Enter your comment...

Comment as:

ANKUR GUPTA (Google)

Sign out

Publish

Preview

Notify me

Newer Post Subscribe to: Post Comments (Atom)

Home

Older Post

1. 2. 3. 4.

Looking For ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus Interview www.Answered-Questions.com questions): (Trigger Firing seq ? ITNirvanas Datwarehousing /Oracle /Informatica/Unix/D2K Plus Interview questions ): www.Amazon.com Trigger Firing seq Looking for ITNirvanas (Datwarehousing/Oracle/Informatica/Unix/D2K Plus Interview www.Answered-Questions.com Chitika | Opt out? questions ): Trigger Firing seq? Searching for ITNirvanas (Datwarehousing /Oracle/Informatica/Unix/D2K Plus Interview

www.MonsterMarketplace.com

www.itnirvanas.com/2009/01/trigger-firing-sequence-in-d2k-oracle.html

3/3

You might also like