nerdexam
Oracle

1Z0-141 · Question #31

The database EMPLOYEES table has a foreign key constraint referencing the DEPARTMENTS table. You are developing a Human Resources application. HR clerks use the Employees form to query, update, and in

The correct answer is D. OPEN_FORM('Departments',ACTIVATE,SESSION);. See the full explanation below for the reasoning.

Question

The database EMPLOYEES table has a foreign key constraint referencing the DEPARTMENTS table. You are developing a Human Resources application. HR clerks use the Employees form to query, update, and insert employee records. They occasionally attempt to add an employee who is in a new department that has not yet been entered into the database. When this happens, they receive an error indicating that the parent record cannot be found, so they cannot commit the employee record. The HR clerks have requested that you place a button on the form to enable them to invoke the Departments form to enter the new department and save it independently. Then they want to be able to return to the Employees form and decide whether or not to save the new employee record. How should you code the When-Button-Pressed trigger to achieve this?

Options

  • ACALL_FORM('Departments');
  • BCALL_FORM('Departments',NO_HIDE);
  • COPEN_FORM('Departments');
  • DOPEN_FORM('Departments',ACTIVATE,SESSION);
  • EOPEN_FORM('Departments',NO_ACTIVATE,NO_SESSION);
  • FNEW_FORM('Departments');
  • GPOST; NEW_FORM('Departments',FULL_ROLLBACK);

How the community answered

(20 responses)
  • B
    5% (1)
  • D
    75% (15)
  • F
    15% (3)
  • G
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-141 Practice