Home » Developer & Programmer » Forms » Set_menu_item property not work (Dev 10 , Oracle 10g, WinXP)
Set_menu_item property not work [message #459502] Sun, 06 June 2010 05:50 Go to next message
I_AM_TOO
Messages: 37
Registered: July 2009
Location: cc
Member
The code on menu item is
UnVisible_Menuitem('ITEM193'); 


Menu procedure is
PROCEDURE UnVisible_Menuitem( menuitem_name VARCHAR2) IS 
 mi_id MenuItem; 
 ALT NUMBER;
BEGIN
 mi_id := Find_Menu_Item( menuitem_name ); 
IF ID_NULL(MI_ID) THEN
  SET_ALERT_PROPERTY('MSG',ALERT_MESSAGE_text,'Menu item not found ' || menuitem_name);
else
 IF Get_Menu_Item_Property(mi_id,visible) = 'PROPERTY_TRUE' THEN 
     Set_Menu_Item_Property(mi_id,visible,'PROPERTY_FALSE'); 
     ELSE 
     Set_Menu_Item_Property(mi_id,visible,'PROPERTY_TRUE'); 
 END IF; 
end if;
END; 


i try it for the both visible and non-visible items but it dosnt work

Any help will be appriciated.
Re: Set_menu_item property not work [message #459539 is a reply to message #459502] Sun, 06 June 2010 14:36 Go to previous message
gregor
Messages: 86
Registered: March 2010
Location: Germany
Member
Hi I_AM_TOO,
everything is fine,
but no apostrophe please, PROPERTY_TRUE is a Forms-Reserved-word.
not ..,'PROPERTY_TRUE'); write ,..,PROPERTY_TRUE);


Gregor
Previous Topic: serial number
Next Topic: Disabling a node in hierarchical tree
Goto Forum:
  


Current Time: Fri Sep 20 08:19:38 CDT 2024