下面,是常用的的觸發器的執行順序:
觸發器執行順序:
1. 當開啟form時:
(1) pre-form
(2) pre-block(block級)
(3) when-new-form-instance
(4) when-new-block-instance
(5) when-new-record-instance
(6) when-new-item-instance
(1) when-validate-record
(只將填寫的記錄與資料庫中已存在的記錄作唯一性的驗證,如果只是頁面上的資料重複而資料庫中沒有與其重複的值則不會報錯.)
(2) when-new-record-instance
(3) when-new-item-instance
3. 當點選「儲存」時
(1) when-validate-record
(將頁面上的所有資料提交到資料庫,若頁面上有重複的資料,則提交第一次時成功但只是將資料先寫到資料庫中一類似臨時表的地方,在提交第二條重覆記錄的時候報錯,執行事務回滾,原來執行成功的指令也將被撤消)
(2) pre-insert
(3) on-insert
(4) post-insert
(5) post-forms-commit
(6) pre-block(block級)
(7) key-commit
(8) when-new-item-instance
4. 當游標移動到當前資料塊中已經顯示的行上時:
(1) when-remove-record
(2) when-new-record-instance
(3) when-new-item-instance
當在該行上的不同item移動時:
(4)when-new-item-instance
5. 當要進行修改時(在記錄中的某個項上進行了修改時):
(1)on-lock
6. 在修改完成後進行儲存時:
(1) when-validate-record
(2) pre-update
(3) on-update
(4) post-forms-commit
(5) pre-block(block級)
(6) key-commit
(7) when-new-item-instance
7. 刪除一條記錄時:
(1) on-lock
(2) when-remove-record
(3) key-delrec
(4) when-new-record-instance
(5) when-new-item-instance
8. f11查詢過程:
(1) when-clear-block
(2) when-new-record-instance
(3) when-new-item-instance
在輸入查詢條件後點ctrl+f11:
(4) pre-query
(5) when-clear-block
(6) post-query
(7) when-new-record-instance
(8) when-new-item-instance
9. crrl+f11:
(1) when-clear-block
(2) pre-query
(3) when-clear-block
(4) post-query(每查一條記錄,觸發一次)
(5) when-new-record-instance
(6) when-new-item-instance
10. 從查詢狀態(f11)轉為輸入狀態(f4)時:
(1) when-clear-block
(2) key-exit
(3) when-new-record-instance
(4) when-new-item-instance
11. 手電筒查詢過程:
(1) query_find(block級)
輸入查詢條件後,點選「查詢」按鈕:
(2) when-clear-block
(3) pre-query
(4) when-clear-block
(5) post-query
(6) when-new-record-instance
(7) when-new-item-instance
12. 點選「new」時:
(1) when-new-record-instance
(2) when-new-item-instance
13. 點選「edit field」時:
(1) key-edit
14. 點選「window help」時:
(1) key-help
15. 點選「clear record」時:
(1) when-remove-record
(2) post-query
(3) when-new-record-instance
(4) when-new-item-instance
16. 點選f4關閉時:
(1) key-exit
(2) post-form
17. 點選「close form」按鈕關閉時:
(1) key-exit
(2) post-form
18. 點選「translations」按鈕時:
(1) translations
19. 點選小叉號關閉時:
(1) when-window-closed
(2) close-window
(3) key-exit
(4) post-form
20. 選中lov列表:
(1) key-listval
(2) when-new-item-instance
21. 選中記錄前面的小條時:
(1) when-new-record-instance
(2) when-new-item-instance(資料項級)
(3) when-new-item-instance
22. 游標上下移動時
(1) when-new-record-instance
(2) when-new-item-instance
Oracle Form 觸發器執行順序
oracle form 觸發器執行順序 觸發器執行順序 1 當開啟form時 1 pre form 2 pre block block級 3 when new form instance 4 when new block instance 5 when new record instance 6 w...
DML觸發器觸發順序
dml觸發器觸發時,dml語句的執行順序 1 語句之前級觸發器 2 行之前級觸發器 3 語句本身 4 行之後級觸發器 5 語句之後級觸發器 例如對錶table new進行更新,使用臨時表記錄觸發器的激發順序,如 所示 語句之前級觸發器 create or replace trigger bstate...
ebs form 觸發器順序
觸發器執行順序 1 當開啟form時 1 pre form 2 pre block block級 3 when new form instance 4 when new block instance 5 when new record instance 6 when new item instanc...