设为首页 收藏本站
查看: 564|回复: 0

[经验分享] Trigger Execution Sequence in Oracle Forms

[复制链接]

尚未签到

发表于 2016-8-3 14:33:09 | 显示全部楼层 |阅读模式
Introduction
This document lists the order in which triggers fire in Oracle Forms 4.5:
o  The first column, Action, describes the function to be performed
(e.g. deleting a record).
o  The second column, Trigger Firing Order, describes the order
in which triggers fire after a function is performed.
o  The third column, Level, describes the level (form, block, item)
at which the trigger fires.  This was accomplished by creating a form
with all the triggers invoked.  If a trigger could fire at all levels,
it was included at all levels.  Such a trigger fires at the lowest level
at which it is defined.
Key triggers and triggers which fire via buttons or check boxes are
not included.
This bulletin does not cover every contingency and covers only the
most commonly used actions.
Action                 Trigger Firing Order                    Level
------                 --------------------                    -----
Runform                 1.  Pre-Logon                          Form
2.  On-Logon                           Form
3.  Post-Logon                         Form
4.  Pre-Form                           Form
5.  When-Create-Record                 Block
6.  Pre-Block                          Block
7.  Pre-Record                         Block
8.  Pre-Text-Item                      Item
9.  When-New-Form-Instance             Form
10. When-New-Block-Instance            Block
11. When-New-Record-Instance           Block
12. When-New-Item-Instance             Item
***********
Enter Query             1.  Post-Text-Item                     Item
2.  Post-Record                        Block
3.  When-Clear-Block                   Block
4.  When-New-Record-Instance           Block
5.  When-New-Item-Instance             Item
Note: If you define the Key-ENTQRY trigger, this is the only trigger
which fires in an Enter Query situation.

*****************
Execute Query
After Enter Query       1.  Pre-Query                          Block
2.  Pre-Select                         Block
3.  On-Select                          Block
4.  When-Clear-Block                   Block
5.  Post-Select                        Block
6.  On-Fetch                           Block
7.  On-Close                           Form
8.  When-Clear-Block                   Block
Note: If you define the Key-EXEQRY trigger, this is the only trigger
which fires in an Execute Query situation.

*************
Execute Query
Without Enter
Query                   1.  Post-Text-Item                     Block
2.  Pre-Query                          Block
3.  Pre-Select                         Block
4.  On-Select                          Block
5.  Post-Select                        Block
6.  On-Fetch                           Block
7.  On-Close                           Form
8.  When_Create_Record                 Block
9.  Pre-Record                         Block
10. Pre-Text-Item                      Item
11. When-New-Record-Instance           Block
12. When-New-Item-Instance             Item

****
Exit                    1.  Post-Text-Item                     Item
2.  Post-Record                        Block
3.  Post-Block                         Block
4.  Post-Form                          Form
5.  On-Rollback                        Form
6.  Pre-Logout                         Form
7.  On-Logout                          Form
8.  Post-Logout                        Form

**************
Next Field and
Previous field          1.  When-New-Item-Instance             Item

***************
Next Record and
Previous Record         1.  When-New-Record-Instance           Block
2.  When-New-Item-Instance             Item
**************
Next Block and
Previous Block          1.  Post-Text-Item                     Item
2.  Post-Record                        Block
3.  Post-Block                         Block
4.  When-Create-Record                 Block
5.  Pre-Block                          Block
6.  Pre-Record                         Block
7.  Pre-Text-Item                      Block
8.  When-New-Block-Instance            Block
9.  When-New-Record-Instance           Block
10. When-New-Item-Instance             Form

*******************
Records Are Queried     1.  Post-Query                         Block
2.  Post-Change                        Block
3.  Post-Change                        Item
4.  Post-Change                        Block
5.  Post-Change                        Block
Go back to Post-Query
NOTE: This cycle is repeated for each record retrieved.

**********************
No Records Are Queried  1.  When-New-Record-Instance           Block
2.  When-New-Item-Instance             Item
NOTE: To observe this Trigger Firing Order:
a.  Enter a query.
b.  Enter a nonexistent record.
c.  Execute the query.
The two triggers listed above, the Enter Query triggers, and
the Execute Query triggers fire.

*************
Create Record           1.  Post-Change                         Block
2.  When-Validate-Item                  Block
3.  Post-Text-Item                      Block
4.  When-Validate-Record                Block
5.  Post-Record                         Block
6.  Post-Block                          Block
7.  On-Savepoint                        Form
8.  Pre-Commit                          Form
9.  Pre-Insert                          Block
10. On-Insert                           Form
11. Post-Insert                         Block
12. Post-Forms-Commit                   Form
13. On-Commit                           Form
14. Post-Database-Commit                Form
15. Pre-Block                           Block
16. Pre-Record                          Block
17. Pre-Text-Item                       Block
18. When-New-Item-Instance              Form

*************
Update Record           1.  When-Database-Record                Block
2.  Post-Change                         Block
3.  When-Validate-Item                  Block
4.  Post-Text-Item                      Block
5.  When-Validate-Record                Block
6.  Post-Record                         Block
7.  Post-Block                          Block
8.  On-Savepoint                        Form
9.  Pre-Commit                          Form
10. Pre-Update                          Block
11. On-Update                           Block
12. Post-Update                         Block
13. Post-Forms-Commit                   Form
14. On-Commit                           Form
Here the transaction is complete and one record added.
15. Post-Database-Commit                Form
16. Pre-Text-Item                       Block
17. When-New-Item-Instance              Form
NOTE: To observe this Trigger Firing Order:
a.  Execute a query.
b.  Change a value.
c.  Choose Action->Save from the menu.
d.  Record the triggers from that point.

*************
Delete Record           1.  On-Lock                             Block
2.  When-Remove-Record                  Block
3.  Post-Change                         Block
4.  Post-Change                         Block
5.  Post-Change                         Block
6.  Post-Change                         Block
7.  Post-Change                         Block
8.  Post-Change                         Block
9.  Post-Change                         Item
10. Post-Query                          Block
11. Post-Text-Item                      Block
12. Post-Record                         Block
13. Pre-Record                          Block
14. Pre-Text-Item                       Block
15. When-New-Record-Instance            Block
16. When-New-Item-Instance              Form
NOTE: To observe this Trigger Firing Order, delete a detail record.

  

  Reference: (Doc ID 61675.1)

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-252364-1-1.html 上篇帖子: oracle:获取session的IP地址 下篇帖子: Oracle数据泵:impdp以及expdp
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表