11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GET_MENU_ITEM_PROPERTY built-in<br />

Description<br />

Returns the state of the menu item given the specific property. You can use this built-in function to get<br />

the state and then you can change the state of the property with the SET_MENU_ITEM_PROPERTY<br />

built-in.<br />

Syntax<br />

FUNCTION GET_MENU_ITEM_PROPERTY<br />

(menuitem_id MenuItem,<br />

property NUMBER);<br />

FUNCTION GET_MENU_ITEM_PROPERTY<br />

(menu_name.menuitem_name VARCHAR2,<br />

property NUMBER);<br />

Built-in Type unrestricted function<br />

Returns VARCHAR2<br />

Enter Query Mode yes<br />

Parameters<br />

menuitem_id The unique ID <strong>Form</strong> <strong>Builder</strong> assigns to the menu item when you create it.<br />

Use the FIND_MENU_ITEM built-in to return the ID to an appropriately<br />

typed variable. Datatype is MenuItem.<br />

menu_name. menuitem_nameThe name you gave the menu item when you created it. If you specify the<br />

menu item by name, include the qualifying menu name, for example,<br />

menu_name.menuitem_name. Datatype is VARCHAR2.<br />

property Specify one of the following constants to retrieve information about the<br />

menu item:<br />

GET_MENU_ITEM_PROPERTY examples<br />

204<br />

CHECKED Returns the VARCHAR2 string TRUE if a check box menu<br />

item is checked, FALSE if it is unchecked. Returns the VARCHAR2 string<br />

TRUE if a radio menu item is the selected item in the radio group, FALSE<br />

if some other radio item in the group is selected. Returns TRUE for other<br />

menu item types.<br />

ENABLED Returns the VARCHAR2 string TRUE if a menu item is<br />

enabled, FALSE if it is disabled (thus grayed out and unavailable).<br />

ICON_NAME Returns the file name of the icon resource associated with a<br />

menu item having the Icon in Menu property set to TRUE.<br />

LABEL Returns the VARCHAR2 string for the menu item label.<br />

VISIBLE Returns the VARCHAR2 string TRUE if a menu item is visible,<br />

FALSE if it is hidden from view.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!