View the Exhibit.

The Summit menu is attached to the Orders form. The Toggle Autoquery menu item is a check box that toggles whether a query is automatically performed when the Orders form is first invoked. If the check box is deselected, users must manually query.
In addition to using the menu, users want to be able to toggle the autoquery preference directly from the form. You add a button named Toggle Autoquery with the following When- Button-Pressed trigger:
DECLARE
mi_id MENUITEMS;
BEGIN
mi_id ;=FIND_ITEM ('Preferences.AutoQuery')
/* Determine the current checked static of the AutoCommit menu checkbox item And toggle the checked state*/ IF GET_ITEM_PROPERTY (mi_id, CHECKED) = 'TRUE' THEN SET_ITEM_PROPERTY (mi_id, CHECKED, PROPERTY_FALSE); ELSE SET_ITEM_PROPERTY (mi_id, CHECKED, PROPERTY_TRUE); END IF; END; However, the trigger does not compile. What three changes must you make so that the trigger compiles successfully?
- A. Change 'preferences.AutoQuery' to 'orders.preferences.AutoQuery'.
- B. Change FIND_ITEM to FIND_MENU_ITEM.
- C. Change 'preferences.AutoQuery' to 'ORDERS.PREFERENCES>AUTOQUERY'.
- D. Change SET_ITEM_PROPERTY to SET_MENU_ITEM_PROPERTY
- E. Change 'preferences.AutoQuery' to 'AUTOQUERY'.
- F. Change PROPERTY_FALSE to 'FALSE'.
- G. Change PROPERTY_TRUE to 'TRUE'.
- H. Change GET_ITEM_PROPERTY to GET_MENU_ITEM_PROPERTY
- I. Change 'preferences.AutoQuery' to 'AutoQuery'.
Reveal Solution
Discussion
Correct Answer: B,D,H 🗳️
Explanation: Only visible for Actual4Labs members. You can sign-up / login (it's free).