You wish to have certain values in a form initialized when the form is first opened. What trigger will you use?

  1. WHEN-NEW-CANVAS-INSTANCE

  2. WHEN-NEW-FORM-INSTANCE

  3. WHEN-NEW-FORM

  4. WHEN-FORM-OPENED

  5. WHEN-NEW-CANVAS


Correct Option: B

AI Explanation

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.

Find more quizzes: