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 messageGo to next 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.
Menu roles table: how to create and use it [message #689044 is a reply to message #543551] Thu, 31 August 2023 05:16 Go to previous message
mfahimaamirgmailcom
Messages: 62
Registered: May 2011
Location: pakistan
Member
Thank you for your reply


see my code in startup code

declare
 l_username varchar2(40);
begin
 l_username := get_application_property(username);
SET_MENU_ITEM_PROPERTY('MANUMENUWINDOW.TEST1',ENABLED,PROPERTY_FALSE);
end;


Dear Sir, I followed this code, but the system gave me an error at the time of running

the form.FRM-10256: User is not authorized to run Form Builder Menu

the form.FRM-10256: User is not authorized to run Form Builder Menu



sir see attached picture
Could you please guide me on Module Roles and how to define them
Now I'm logged in as Scott



Please guide me about Menu Role table How do I create a role for a user that is created from SQLPluse by a sys user or a Scott user?Which rights are granted to the user  

please guide me step by step


I greatly appreciate your valuable guidance and assistance

Regard's
Previous Topic: Enable\Disable menu items for different users
Next Topic: How do I force user to enter child records on creating a new parent record
Goto Forum:
  


Current Time: Sat Apr 27 17:06:49 CDT 2024