Modifying the Default Relation Triggers
You may at some point want to add your own comments and code to the default master-detail triggers that Oracle Forms creates. You can edit a default trigger as you would any trigger that you had created yourself.
Remember, however, that if you later change the properties of the relation, Oracle Forms may need to delete or edit the default triggers. For example, changing a relation's Delete Record Behavior property from Cascading to Isolated causes Oracle Forms to remove the now unnecessary Pre-Delete trigger.
Consider the following points when you edit master-detail triggers:
- Do not alter or delete the comments that Oracle Forms generates. These
comments tell Oracle Forms where to insert or delete trigger text when
changes are necessary.
- If you add code to a trigger, insert it before the "Begin default relation
program section" comment or after the "End default relation program
section" comment.
- Oracle Forms does not delete a master-detail trigger that you have modified,
provided that you place your code outside the default relation program section.
(Oracle Forms removes the relation program section, but does not delete
the trigger.)