Modifies the given properties of a menu item.
SET_MENU_ITEM_PROPERTY
(menuitem_id MenuItem,
property NUMBER,
value NUMBER);
SET_MENU_ITEM_PROPERTY
(menu_name.menuitem_name VARCHAR2,
property NUMBER,
value NUMBER);
SET_MENU_ITEM_PROPERTY
(menuitem_id MenuItem,
property NUMBER,
value VARCHAR2);
SET_MENU_ITEM_PROPERTY
(menu_name.menuitem_name VARCHAR2,
property NUMBER,
value VARCHAR2);
Built-in Type unrestricted procedure
Enter Query Mode yes
CHECKED Specifies the Checked property, which indicates if a check box menu item or a radio menu item is in the checked state or unchecked state.
ENABLED Specifies whether the menu item is enabled (thus active) or disabled (thus greyed out and unavailable to the operator).
ICON_IN_HTOOLBAR Specifies whether the menu item appears (represented by an icon) on the horizontal menu toolbar of a form.
ICON_IN_MENU Specifies whether an icon is displayed in the menu beside the menu item. If Yes, the Icon Filename property specifies the icon that will be displayed.
ICON_IN_VTOOLBAR Specifies whether the menu item appears (represented by an icon) on the vertical menu toolbar of a form.
ICON_NAME Specifies the file name of the icon resource associated with a menu item having the Icon in Menu property set to TRUE.
LABEL Specifies the character string for the menu item label.
VISIBLE Specifies whether the menu item is visibly displayed.
PROPERTY_TRUE Specifies that the property is to be set to the TRUE state.
PROPERTY_FALSE Specifies that the property is to be set to the FALSE state.
These restrictions apply only if the menu module's Use Security property is set to Yes:
/*
** Built-in: SET_MENU_ITEM_PROPERTY
** See also GET_MENU_ITEM_PROPERTY
*/
PROCEDURE Rename_Menuitem( menuitem_name VARCHAR2) IS
mi_id MenuItem;
BEGIN
mi_id := Find_Menu_Item( menuitem_name );
IF Get_Menu_Item_Property(mi_id,LABEL) = 'MENUITEM1' THEN
Set_Menu_Item_Property(mi_id,LABEL,'MENUITEM2');
ELSE
Set_Menu_Item_Property(mi_id,LABEL,'MENUITEM3');
END IF;
END;