1Z0-141 · Question #63
The Summit application contains several different forms. You are developing the Orders form of the Summit application. You have coded a trigger in the form to retrieve and format the address of the…
The correct answer is A. Move the code to a PL/SQL program unit in the Orders form. See the full explanation below for the reasoning.
Question
The Summit application contains several different forms. You are developing the Orders form of the Summit application. You have coded a trigger in the form to retrieve and format the address of the customer placing the order so that you can print a mailing label. However, as you add functionality you discover that you want to use the same code in several triggers in that form. The other forms in the application do not use this logic. Without creating a separate module, how can you reuse the code within the Orders form and ensure that all triggers that format and retrieve the customer address do it in exactly the same way?
Options
- AMove the code to a PL/SQL program unit in the Orders form.
- BMove the code to a PL/SQL library that you attach to the Orders form.
- CCopy the code from the first trigger and paste it into other triggers that use it.
- DPlace the trigger in an Object Group and drag it wherever it is needed in the Orders form.
- EPlace the trigger in an Object Library and drag it wherever it is needed in the Orders form.
How the community answered
(30 responses)- A80% (24)
- B3% (1)
- D10% (3)
- E7% (2)
Community Discussion
No community discussion yet for this question.