Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem disabling menu item

Status
Not open for further replies.

bilalch

Programmer
Sep 26, 2003
84
0
0
IR

hi frends,

i've written this in the menu pl/sql

if NOT system.mode='eneter-query'
then
enter_query;
set_menu_item_property('mymenu.ent_qry',ENABLED,PROPERTY_FALSE);
end if;

but it's not working.

plz help me.

 
Where is the pl/sql written? When does it get executed?

Your code also has errors. You will need to do this:

[tt]IF Name_In('SYSTEM.MODE') != 'ENTER-QUERY'
THEN...[/tt]
 
the code's written in the pl/sql of menu item 'ENT_QRY' in the menu 'MYMENU'.

i want to disable this menu item when the system gets into the enter-query mode on clicking the menu item.
 
I think you will need to disable the item before the enter_query built in.

[tt]IF Name_In('SYSTEM.MODE') != 'ENTER-QUERY'
THEN
set_menu_item_property('mymenu.ent_qry',ENABLED,PROPERTY_FALSE);
enter_query;
END IF;
 
thanks lewisp for ur response but still it's not working.

plz help me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top