Returns the state of the menu item given the specific property. You can use this Built-in function to get the state and then you can change the state of the property with the SET_MENU_ITEM_PROPERTY Built-in.
FUNCTION GET_MENU_ITEM_PROPERTY
(menuitem_id MenuItem,
property NUMBER);
FUNCTION GET_MENU_ITEM_PROPERTY
(menu_name.menuitem_name VARCHAR2,
property NUMBER);
Built-in Type unrestricted function
Returns VARCHAR2
Enter Query Mode yes
CHECKED Returns the VARCHAR2 string TRUE if a check box menu item is checked, FALSE if it is unchecked. Returns the VARCHAR2 string TRUE if a radio menu item is the selected item in the radio group, FALSE if some other radio item in the group is selected. Returns TRUE for other menu item types.
ENABLED Returns the VARCHAR2 string TRUE if a menu item is enabled, FALSE if it is disabled (thus grayed out and unavailable).
ICON_IN_HTOOLBAR Returns the VARCHAR2 string TRUE if an icon should appear on the horizontal menu toolbar of a form.
ICON_IN_MENU Returns the VARCHAR2 string TRUE if an icon should be displayed in the menu beside the menu item.
ICON_IN_VTOOLBAR Returns the VARCHAR2 string TRUE if an icon should appear (represented by an icon) on the vertical menu toolbar of a form.
ICON_NAME Returns the file name of the icon resource associated with a menu item having the Icon in Menu property set to TRUE.
LABEL Returns the VARCHAR2 string for the menu item label.
VISIBLE Returns the VARCHAR2 string TRUE if a menu item is visible, FALSE if it is hidden from view.
/*
** Built-in: GET_MENU_ITEM_PROPERTY
** Example: Toggle the enabled/disable status of the menu
** item whose name is passed in. Pass in a string
** of the form 'MENUNAME.MENUITEM'.
*/
PROCEDURE Toggle_Enabled( menuitem_name VARCHAR2) IS
mi_id MenuItem;
BEGIN
mi_id := Find_Menu_Item( menuitem_name );
IF Get_Menu_Item_Property(mi_id,ENABLED) = 'TRUE' THEN
Set_Menu_Item_Property(mi_id,ENABLED,PROPERTY_FALSE);
ELSE
Set_Menu_Item_Property(mi_id,ENABLED,PROPERTY_TRUE);
END IF;
END;