Home » Developer & Programmer » Forms » Problem with menu item (Oracle forms 6i)
Problem with menu item [message #543532] Wed, 15 February 2012 02:53 Go to next message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
I want to disable the menu item from the menu. As i know, there are two ways of doing this.
01. Write
set_menu_item_property('menu.menu_item', ENABLED, PROPERTY_FALSE);


in Startup code of the menu itself

02. Mannually disable the item from property palette

but both of these are not working. I have also disabled the Menu Security and removes the roles from the menu itself.

what exactly is the thing which is controlling the menu? Or is there any other way to disable/disappear the menu item?
Re: Problem with menu item [message #543545 is a reply to message #543532] Wed, 15 February 2012 03:18 Go to previous messageGo to next message
aallan
Messages: 150
Registered: October 2011
Senior Member
Hi,
I advice you to insert the menus name in table, and create a form according to this table with privileges, and according to this privileges you can use Menu Startup Code to write you code.

And in Menu Startup Code you can select your menus name and set property as you want.

[Updated on: Wed, 15 February 2012 03:19]

Report message to a moderator

Re: Problem with menu item [message #543551 is a reply to message #543545] Wed, 15 February 2012 03:31 Go to previous messageGo to next message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
Will you please elaborate?

actually, I already created a table containing menu name and menu item name. And I am getting the data with cursor for specific user. Like some items are enable for the user and some are not. I am getting 100% result with other 2 menus but it is not working with this one.
Re: Problem with menu item [message #543565 is a reply to message #543551] Wed, 15 February 2012 05:19 Go to previous messageGo to next message
aallan
Messages: 150
Registered: October 2011
Senior Member
What do you mean by other 2 menus ??
Re: Problem with menu item [message #543620 is a reply to message #543565] Wed, 15 February 2012 23:07 Go to previous message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
By 2 menus, i mean that the way I am making menu item enable/disable is going fine with other 2 menus (menus of other systems)... So there is no doubt in the coding that the coding is faulty.
Previous Topic: calling reports9i from forms9i
Next Topic: Oracle 6i Menu
Goto Forum:
  


Current Time: Wed Dec 17 20:57:02 CST 2014

Total time taken to generate the page: 0.24817 seconds