How can you resolve this Issue so that all system messages continue to be displayed after the trigger code runs?

In the Orders form, users often have a need to return to the first record. Because there are many
employee records, it may take a long time for them to scroll up to the first record, so you create a
button with the label First Record.
When users click the first Record button, you want to display your own custom message instead of
the system message “FRM-40100: At first record.”
The system message should be displayed in other cases when users attempt to scroll above the
first record.
You code the following When-Button-Pressed trigger:
:SYSTEM.mesage_level := ‘5’
UP;
WHILE FORM_SUCCESS LOOP
UP;
END LOOP;
MESSAGE (‘This is the first Order’);
The button works perfectly to return to the first record and display your custom message instead of
the system message. However, users report that as they continue to use the form after clicking the
button, no longer see other helpful messages. For example, the message “FRM 40102: Record
must be entered or deleted first” no longer appears when they attempt to scroll past the last
record.
How can you resolve this Issue so that all system messages continue to be displayed after the
trigger code runs?

In the Orders form, users often have a need to return to the first record. Because there are many
employee records, it may take a long time for them to scroll up to the first record, so you create a
button with the label First Record.
When users click the first Record button, you want to display your own custom message instead of
the system message “FRM-40100: At first record.”
The system message should be displayed in other cases when users attempt to scroll above the
first record.
You code the following When-Button-Pressed trigger:
:SYSTEM.mesage_level := ‘5’
UP;
WHILE FORM_SUCCESS LOOP
UP;
END LOOP;
MESSAGE (‘This is the first Order’);
The button works perfectly to return to the first record and display your custom message instead of
the system message. However, users report that as they continue to use the form after clicking the
button, no longer see other helpful messages. For example, the message “FRM 40102: Record
must be entered or deleted first” no longer appears when they attempt to scroll past the last
record.
How can you resolve this Issue so that all system messages continue to be displayed after the
trigger code runs?

A.
instead of setting the system message level to 5inthe code, set it to 50.

B.
instead of setting the system message level to 5inthe code, set it to 25.

C.
Add the line of code just before the end of the loop to reset the system message level.

D.
Add a line of code just after the end of the loop to reset the system message level.

E.
Instead of setting the system message levelinthe When-Button-Pressed trigger,use an On-Error
trigger to customize the message.

F.
Set the system message level in a When-New-Form-Instance trigger,so that all system
messages appear except wheninthe scope of the trigger.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Metalfreak

Metalfreak

D fits better however E also seems acceptable.

thajba

thajba

the Answer is D