Home » Developer & Programmer » Forms » Disable Menu Item
Disable Menu Item [message #478313] Thu, 07 October 2010 17:34
coolguy01
Messages: 64
Registered: August 2006
Member
Hi,
Based on a value i would like to disable a menu item. I had a following code for it

IF
rec_get.PC = 'X'
THEN
Set_Menu_Item_Property('T_MENU.PC', ENABLED,PROPERTY_FALSE);
END IF;

This would throw an error FRM-41067: Cannot fine Menu Item: invalidID. So i modified the code to check for the value of the menu_item. Now this code returns a null value and the menu is not disable eventhough i know the menu item exists and i am passing the right name. The code for this below. Is there anything i need to check or any property i need to set to disable a menu item.



IF rec_get.PC = 'X' THEN
mi_id := FIND_MENU_ITEM('T_MENU.PC');
IF NOT ID_NULL(mi_id) THEN
Set_Menu_Item_Property(mi_id, ENABLED,PROPERTY_FALSE);
END IF;
END IF;
Previous Topic: pl/sql tables
Next Topic: compiling error when using bulk collect in oracle form 10g
Goto Forum:
  


Current Time: Wed Sep 18 19:17:44 CDT 2024