How can I hide a menu options programatically in Forms 6i?

Hi folks:
I am using a customized menu. Called AEMS001. I have four options: File, Maintenance, Operations, Administration.
Inside Maintenance, I have 15 different options and I need to hide five of them (Fees, Documents, Legal, Recors, Others) depending of the user role assined.
How can I do that?
I try to use set_menu_item_property('FEES', Visible, property_false)
but it give me an error: FRM-41067: Cannot find menu item: invalid Id
What do I did wrong?
thanks a lot.
Abdel

hi,
it might be that there is an initialization error in your code...
try something like this (you can use visible or enable property).
tell me your email and i will send you sample form and menu with the following code ...
declare
menu_item_name     varchar2(40) := 'MENU2.ITEM23';
menu_item_id     MenuItem;
begin
menu_item_id := find_menu_item(menu_item_name);
/*if (not id_null(menu_item_id)) then
if (GET_MENU_ITEM_PROPERTY(MENU_ITEM_NAME, visible)='TRUE') then
     set_menu_item_property(menu_item_id, visible, property_false);
else
     set_menu_item_property(menu_item_id, visible, property_true);     
end if;
else
message(' cannot find menu item!');          
     raise form_trigger_failure;
end if;     
if (not id_null(menu_item_id)) then
if (GET_MENU_ITEM_PROPERTY(MENU_ITEM_NAME, enabled)='TRUE') then
     set_menu_item_property(menu_item_id, enabled, property_false);
else
     set_menu_item_property(menu_item_id, enabled, property_true);     
end if;
else
     message(' cannot find menu item!');          
     raise form_trigger_failure;
end if;     
end;

Similar Messages

  • How can i hide the menu bar at the bottom of the app in itunes

    how can I hid the bar at the bottom of the App screen in itunes. Where it shows how much audio, app etc space you have left on your device

    Unforrtunately the status bar doesn't make any difference, however I have worked out that the bar does show when I go into full screen. 
    I would have thought it should also work when not in full screen - it certianly used to.

  • How can I hide primary key column in BC4J form

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger.

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger. To hide it, edit the attribute using attribute-editor that you bring up by double-clicking on the attribute in the "StructurePane" .
    Then go to control-hints panel and mark the attribute setting for Display = Hide.
    Then UI wizards will not add the attribute into generated panels.
    However once you have UI generated, this hint is no more used.

  • How can I hide the menu bar of better a specific option without using an addon?

    For security purpose on my environment, I would like to hide the Menu Bar option or (better) restrict the right to install an add-on, change the proxy configuration etc..
    I dont want to use an add-on for that as it will perhaps not work anymore if I update my firefox.
    So i am searching for a registry/file user preference solution or anything else that will let me doing that.
    Thank you for your help
    == This happened ==
    Every time Firefox opened
    == everytime ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    You can hide the menu bar and other toolbars with code in [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #toolbar-menubar {display:none!important;}</nowiki></pre>
    See also http://kb.mozillazine.org/Locking_preferences

  • How can i hide a column using personalization?

    Hi,
    Please help me how can i hide a one column in oracle forms using personalization?
    Thanks

    Hi,
    When you login to My Oracle Support website, enter "458786.1" or "468657.1" in the search box, and you should get the documents.
    Or, use the direct links below to access those documents.
    How To Do Forms Personalization (Doc ID 468657.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=468657.1
    RCVRCERC: When Using Personalization to Remove a Column Receive Error FRM-41017: Cannot set UPDATE ALLOWED (Doc ID 458786.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=458786.1
    Regards,
    Hussein

  • How can I hide the borders and keep it as an option?

    How can I hide the borders and keep it as an option?  I had someone go into the css I believe, and make it so there were no borders visible on the page (I could see the dotted outline while working on it, but when pushed, it wasn't visible (which is what I wanted).  They called it "noborders."  Since I had to reinstall, it went away.  Help?
    I have Dreamweaver CS5.5

    Try this site:  CSS Border
    Add code then type in a zero. Later add border size you want.
    examples:  border: 0px solid black;
    or
    border: 1px 000000;
    or
         border-top-style: solid; 0px 000000;
         border-right-style: dotted; 0px 000000;
         border-bottom-style: solid; 2px 000000;
         border-left-style: dashed; 1px 000000;

  • I am trying to export my bookmarks to an HTML file, but the "organize" option does not appear when I click on the "bookmarks" option on the menu bar. How can I find the organize option?

    How can I find the "organize" option or export my bookmarks to HTML when no "organize" option appears when I click on the "bookmarks" word on the menu bar?

    Menu changed to show "Show All Bookmarks" see item #7 "Menu changes (wording)" in
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • How can I hide a worksheet in a workbook in Numbers 1.5 for iPad?

    How can I hide a worksheet in a workbook in Numbers 1.5 for iPad 2?

    Numbers for the pad, as near as I can tell, does not do hidden sheets.  There are some options though.
    1. You can narrow the columns to the point that they are unreadable.
    2 you can open and store those sheets is a different app, such as docs to go or quickoffice.  Bury that app in a folder that would not be found easily.
    To see the numbers help section, open numbers, tap the wrench and tap help. 

  • How can I hide file names in a photostream?

    How can I hide file names in a shared photo stream on icloud.  I don't want people to see how many pictures I take at an event.  Can this be done to pictures already posted?

    The Shared Photo Stream uses the filename of the original image file as the title that is shown in the stream.  If you want to hide the original filename, export the image to a folder in the Finder, rename it, then reimport it to share it.  You can rename the files directly when exporting.
    Or, if you do not mind to change the names of the originals in Aperture use the command "Metadata > Batch change" and change the title of the image, with the option "Apply to Original file" enabled and "Add metadata from" set to "None".
    To rename the photos already shared, delete them from the Shared Album and share them again.

  • How can I hide page thumbnails navigation bar at the start up of Adobe Reader and open a pdf file?

    How can I hide page thumbnails navigation bar at the start up of Adobe Reader and open a pdf file? I could not find this option under Preferences tab? Thanks

    Hey there,
    Thanks for your reply. That works for the files I do what you said. However, for files I have not done that, It still shows the navigation bar. Any idea, how to do it default for any files?
    Thanks agian

  • How can we hide the link "Attachment" in the preview of a Task??

    Hi all
    I have requirement in portal CE 7.1 as follows.
    all GP tasks are getting displayed in UWL that is fine.
    i want to hide the link "Attachment" in the preview of a Task??
    once i open the task from UWL then that task item opens in new window where i am getting the "Attachment" link that i wanted to hide or remove.
    Cab you provide ur inputs then it would be great help to me
    Thanks
    Sunil

    There are Subject, From, Send Date, Attachment .... columns.
    Do you want to hide Attachment column?
    Please refer wiki link :
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl%252bfaq
    How can I have the attachments options be hidden? Our users do not want to add attachments.
    In the UWL iview properties update the proprety "List of preview sections to hide (SUBJECT, ATTRIBUTES, DESCRIPTION, ATTACHMENTS, NOTES, USERDECISION, and/or ACTIONS)." Enter ATTACHMENTS as a value.
    Edited by: shrikant kamble on Feb 27, 2009 12:41 PM

  • How can i hide or lock the apps on ipad

    How can i hide or lock the apps on ipad, i don't want anyone to see some apps when my ipad was used. Without Jailbreak.

    It depends what you mean by 'lock' if you mean keep the iPad on a specific app that's easy to do as long as you are updated to iOS 6 which from your device information I can see your iPad is updated to iOS 6.0.2. All's you have to do is go to Settings > General > Accessability > Guided Access > ON > Set Passcode (Set a passcode to lock an app onto the screen). Go back to the home screen and click the app you would like to lock onto. Press the home button three times quickly. You can then highlight certain parts of the app you would not like them to be able to press, disable touching or motion if thats what you need. Press start. To exit the locked app triple press the home button again and type in the passcode you set earlier. Press end in the top left corner. I hope this helped you but if by 'lock' you meant don't allow on the app this is not possible as of yet with the iOS software although some apps do allow you to lock them with a passcode or you could try restrictions in the settings menu but this only works with built in apps such as; camera, facetime, safari, downloading apps, siri etc.

  • How to call dicoverer through menu option in forms

    Hi,
    Need help.........Can anybody tell me .....how to call dicoverer through menu option in forms.
    Thanx
    Sunil

    Hi,
    You can define a Form Function filling the basic information and
    HTML call Set as OracleOasis.RunDiscoverer. You can even define Paramters during the form function registration. With this definition you will able to create a link to a Discoverer workbook that will automatically open Discoverer Plus or Viewer to display the workbook using Apps security.
    Please refer to the following Metalink Note for more details:
    278095.1- How to Create a Link to a Discoverer Workbook in Apps11i
    Hope This helps
    - Sanjeev

  • How to show conditionally IR menu options?

    A IR page can be accessed by authenticated and non-authenticated users. I would like to hide some options in IR menu from non-authenticated users.
    Is it possible?
    Igor

    Hi, Iloon.
    Unfortunately, that does not seem applicable to me, because I have no access to IR menu items APEXIR_SELECT_COLUMNS, APEXIR_FILTER, APEXIR_SORT, APEXIR_DOWNLOAD etc...
    These are not report columns to which one can apply authorisation scheme, but IR black box stuff.
    I presume, there must be some undocumented package function that can show/hide these IR options, but I have not managed to find it yet.
    Igor

  • There is a line showing on top of my ipod.  How can I hide it for make it disappeared?

    There is a line showing on top of my ipod.  How can I hide it for make it disappeared?

    Try a hard reset first.  To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    The next step would be to restore the iPod to factory setting in iTunes.
    And if still no luck, it's likely a hardware issue/malfunction with the screen.
    B-rock

Maybe you are looking for

  • Not critisism, but...

    I don't want to start a flame war here by any means, but I feel I need to point a few things out. I am a long time Netbeans user, forced to change to JDeveloper in my new job (will check which IDE they use next time I move :) I would just like to say

  • Mac not turning on

    The other night I was watching TV and heard a funny noise, then all of a sudden my power went out. The next morning I checked my TV to make sure the power was back on, and it was. Yesterday I went to turn on my Mac, but it wouldn't turn on, so I chec

  • Pl/sql with discoverer 10.1.2

    I need import e funcion in pl/sql via dblink. Can i do this??? i use discoverer administrator and desktop 10.1.2. When i try to import the funcion i obtein a massage "Invalid function". I don't know that this is a problem with the dblink.. i dont't k

  • Transaction timeout and never stopped thread

              Hi, joe:           I noticed, if I make a transaction locked, whether I use OCI or JDRIVER, the thread           will never stop after the transaction timed out. Only when I use OCI and use statement.setQueryTimeout,           the thread wi

  • IPS new auto update feature

    hi, the new 6.1 IPS ios has a new feature which is the auto update directly from cisco, but it seems its not working, i have entered my correct username and password , but the site already put by default for auto update seems to be not working. anyon