nerdexam
Oracle

1Z0-241 · Question #45

When a user change triggers an error, you want PeopleCode to position the cursor in the field that triggered the error. What is the correct syntax?

The correct answer is A. GetField().SetCursorPos(%Page); Error Msgget(1040,1,"Message not found"). See the full explanation below for the reasoning.

Question

When a user change triggers an error, you want PeopleCode to position the cursor in the field that triggered the error. What is the correct syntax?

Options

  • AGetField().SetCursorPos(%Page); Error Msgget(1040,1,"Message not found");
  • BError Msgget(1040,1,"Message not found"); GetField().SetCursorPos(%Page);
  • CError ("Message not found"); GetField().SetCursorPos(%Page);
  • DSetCursorPos.GetField(); Error MsgGet(1040,1, "Message not found");
  • EError MsgGet(1040,1, "Message not found"); SetCursorPos.GetField();

How the community answered

(25 responses)
  • A
    80% (20)
  • C
    12% (3)
  • D
    4% (1)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-241 Practice