You wish to have certain values in a form initialized when the form is first opened. What trigger will you use?
-
WHEN-NEW-CANVAS-INSTANCE
-
WHEN-NEW-FORM-INSTANCE
-
WHEN-NEW-FORM
-
WHEN-FORM-OPENED
-
WHEN-NEW-CANVAS
WHEN-NEW-FORM-INSTANCE is the correct Oracle Forms trigger that fires when a form is first opened or instantiated. This trigger is designed specifically for initializing form-level values, setting default properties, or performing one-time setup tasks. WHEN-NEW-CANVAS-INSTANCE relates to canvas rendering, not form initialization.
To answer this question, you need to understand the different triggers available in Oracle Forms.
Option A) WHEN-NEW-CANVAS-INSTANCE - This trigger fires when a new instance of a canvas is displayed. It is not the appropriate trigger to use for initializing values in a form when it is first opened.
Option B) WHEN-NEW-FORM-INSTANCE - This trigger fires when a new instance of a form is created and displayed. It is the correct trigger to use for initializing values in a form when it is first opened.
Option C) WHEN-NEW-FORM - This trigger fires when a new form is entered or a form is reset. It is not the appropriate trigger to use for initializing values in a form when it is first opened.
Option D) WHEN-FORM-OPENED - There is no trigger called WHEN-FORM-OPENED in Oracle Forms.
Option E) WHEN-NEW-CANVAS - This trigger fires when a new canvas is displayed. It is not the appropriate trigger to use for initializing values in a form when it is first opened.
The correct answer is Option B) WHEN-NEW-FORM-INSTANCE. This trigger should be used to initialize values in a form when it is first opened.