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)- A80% (20)
- C12% (3)
- D4% (1)
- E4% (1)
Community Discussion
No community discussion yet for this question.