To refer to a menu object in PL/SQL code, use menu_name.item_name syntax. Use this syntax to:
Main Menu Items Items on the main menu belong to the main menu only—and not to the individual menus they own.
To refer to the main menu QUERY item in code, use the syntax:
main_menu.query (and not query_menu.query)
/* Dynamically disable
the ENTER item on the QUERY menu */
SET_MENU_ITEM_PROPERTY(query.enter, enabled, property_false);