nerdexam
Oracle

1Z0-151 · Question #93

On the Employees form, you do not want the cursor to enter the Employee_Id text item, which is the first item in the first block on the form. You code a Pre-Text-item trigger for that item that uses…

The correct answer is C. The form runs, but as soon as it appears, you receive a runtime error. You cannot put a restricted built-in (in this case the navigational built-in go_item), in a trigger that is performing navigation. When you run a form described as above, you receive the error `Illegal restricted procedure go_item in pre_text.

Triggers

Question

On the Employees form, you do not want the cursor to enter the Employee_Id text item, which is the first item in the first block on the form. You code a Pre-Text-item trigger for that item that uses the GO_ITEM built-in to navigate to the next item. What happens when you run the form from Forms Builder?

Options

  • AYou receive a compilation error.
  • BThe form starts to run, but immediately closes. So If an error message Is displayed, you are unable to see it.
  • CThe form runs, but as soon as it appears, you receive a runtime error.
  • DThe form runs, but as soon as you perform any navigation, a runtime error occurs.
  • EThe form runs with no problem.

How the community answered

(54 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    76% (41)
  • D
    13% (7)
  • E
    2% (1)

Explanation

You cannot put a restricted built-in (in this case the navigational built-in go_item), in a trigger that is performing navigation. When you run a form described as above, you receive the error `Illegal restricted procedure go_item in pre_text.

Topics

#Pre-Text-Item trigger#GO_ITEM#restricted built-ins#navigation runtime error

Community Discussion

No community discussion yet for this question.

Full 1Z0-151 Practice