nerdexam
Oracle

1Z0-141 · Question #104

In a multiform application, one form must invoke another. The form modules are called Customers and Orders internally, but the compiled files are saved as CUST.FMX and ORD.FMX, respectively. There…

The correct answer is C. IF ID_NULL(FIND_FORM('orders')) THEN. See the full explanation below for the reasoning.

Question

In a multiform application, one form must invoke another. The form modules are called Customers and Orders internally, but the compiled files are saved as CUST.FMX and ORD.FMX, respectively. There is a button in the Customers form with a When-Button-Pressed trigger to invoke the Orders form. There is a requirement that only one Orders form can be running at a time, so the trigger must check to see if the form is already open. If it is open, the focus must be sent to it. If it is not open, it has to be opened. Which of these trigger codes will achieve the required functionality?

Options

  • AIF NOT FIND_FORM('ord') THEN
  • BIF ID_NULL(FIND_FORM('ord')) THEN
  • CIF ID_NULL(FIND_FORM('orders')) THEN
  • DIF NOT FIND_FORM('orders')) THEN

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    13% (4)
  • C
    77% (24)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-141 Practice