Disable the menu item just before exit_form; is not turn it off.

Hello

Not sure if anyone has had this problem.

I have a form to open a session
This form called a loggin cmdlet when the applet is done with the connection he present a distpatch back to the login form.
The login form is running a TIME-CUSTOM-POINT-EVENT

In WHEN-CUSTOM-POINT-EVENT, I have the following:

declare
MenuItem v_mi: = NULL;
BEGIN
v_mi: = Find_Menu_Item (' MY_MENU.) CONNECTION ");"
Set_Menu_Item_Property (v_mi, Enabled, PROPERTY_FALSE);

v_mi: = Find_Menu_Item (' MY_MENU.) LOGOUT');
Set_Menu_Item_Property (v_mi, Enabled, PROPERTY_TRUE);

exit_form; -If I comment that it works, why?
END;


the exit_forms does not allow to disable my menu_items if I call it, but it works when I don't?


Any Advisor.

Kind regards.

Published by: Miguel Cetz, Sep 24, 2008 11:46

How did you call your form module. If the calling form used a DO_REPLACE as a parameter in CALL_FORM, the menu that you have disabled just one element is replaced by the appellant menu again.

hope this helps

Tags: Oracle Development

Similar Questions

  • Disable the Menu item

    Greedings,

    Lets give an example of a menu bar we have main menu-> article

    to disable an element we use
    set_Menu_Item_Property ('MENU.item', Enabled, PROPERTY_OFF);

    How can we disable the good root?

    Thank you

    Lets give an example of a menu bar we have menu root-> point
    How can we disable the good root?

    If you want to disable the menu root, just set the menu property visible on No.

    Hope this will help you.

    If someone useful or appropriate, please mark accordingly.

  • Disable the menu item in the third party application (such as Photoshop)

    Please suggest me to disable the menu item in the third party application (such as Photoshop).

    Hello

    I suggest you to send your query to the following link:

    Photoshop Help Center: http://www.adobe.com/support/photoshop/

    Hope this information is useful.

  • How can I disable the menu items using manu, Photoshop cs6?

    How can I disable the menu items using manu, Photoshop cs6?

    I packed Photoshop cs6 using AAMEE CS6.

    I need some menu items to disable.

    can someone please process to do, or what records or files need to edit.

    Enjoy the immediate response.

    Thanks in advance.

    There is another discussion on the same topic: http://forums.adobe.com/thread/1234967?tstart=0

    Perhaps the same company has contracted two of your companies

  • Run time shortcut menu - disable the menu item



  • Disable or remove the menu item 'Print the Pages' in reader

    Hello

    I would like to delete (or disable) the menu item print Pages in adobe reader

    See the attachment for the location of the menu item

    Thank you

    Mike

    Is not possible.

  • How can I disable the menu

    I created 2 elements menu say save, open, and I want to disable the menu item open. Can Hoiw I do this task?

    You can put the conditional code in your makemenu method to disable a menu.

    Something like:

    protected void makeMenu( Menu menu, int instance )
    {
        menu.add(saveMenu);
    
        if(condition == true)
        {
           menu.add(openMenu);
        }
    }
    

    Concerning

    Bika

  • Messages arrive, but the "Inbox" or any other folder open even if the content still there (and almost all the menu items do not work)!

    Using last Thunderbird on Windows 7. Had problems with the operating system and had to use a system restore. When I opened TB, it displays the folders in the left pane, but the credits of "Thunderbird Mail-...» "and the 3 topics: E-mail; Accounts; and advanced features. None of the files would open. I used the "Search messages" function and has been able to show existing and new messages in the 'Inbox '. Also wanted to know if files are always in my 'profile'... and they were all there where they should be. (And almost all the menu items are disabled).
    I wonder if I need to reinstall Thunderbird... maybe the OS issues this morning - and restore - have corrupted or damaged key elements of the program?
    Thank you...

    System Restore is not always a very good thing for applications.

    Reinstall is unlikely to help. But if your accounts are all imap and that you do not have a lot of other data (address book, for example) in Thunderbird, you could start from scratch.

    But before that, you should try Thunderbird started in SafeMode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird

  • Disable the menu bar, the option apears in my Firefox 3.6 X using Windows XP SP3, but not in the same version with Ubuntu 10.04

    With the help of dual boot OS, Windows XP SP3 / Ubuntu 10.04. Even Firefox v3.16.13. In windows, using the button display in the menu bar, I can't turn off the menu bar. You use Ubuntu, the same option is available in "display".
    I used "subject: Config" before, but I'm very careful and document all changes. Any time I need to access the menu items, using windows, I just use alt = _.

    In versions of Firefox 3.6 you can hide the bar of menus under Windows and not Linux. In Firefox 4 beta current versions you can hide the Menu bar and have the greyish Firefox button instead and use F10 to temporarily show the Menu bar, so you need to wait or try the beta version .

  • Access the menu bar drop down everything by changing the menu items

    Hello

    I use a design of producer/consumer.  In the producer, I have a structure of the event which generates messages for the consumer based on the event.  One of the events in the event structure is placed to get the menu selection.  In the loop of consumption, some States modify the menu bar items.  For example, if the program mode from automatic to manual, the items of the menu bar change accordingly.

    The problem I have is if the mode is changed to auto, for example, and then a menu bar dropdown can be reached quickly afterwards (sometimes happens accidentally even), before the menubar item change happens, there is a mistake and labview crashes.  I guess the problem is that the menu bar is connected the user while he tries to be changed. ?? Disable the menu followed until the elements are correctly changed does not help, because it does not prevent you from pulling a menu down, only to make a selection.

    Any advice?  This is the problem because it seems to me, in any case.

    Thanks as always!

    Greg

    You can set the cursor "Occupied" until such time that your Menu is updated.

    So user will not be able to click on the Menu.

  • Where is the menu item "update iTunes game"?

    I am on iTunes 12.4 (Mac) and the menu item "Update of iTunes game" has disappeared from this version. The music library on my Macbook Pro is not sync to the cloud to be available on my iPhone, even if both are signed on the same account and my game subscription is current/paid.

    Thank you, Apple, to make things more difficult that they'll be removing the menu option to force a sync

    Now, how do I just that... force my laptop to update the game?

    The button 'Update iTunes game' old responsibility now 'Updated iCloud music library' file/library.

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

  • Failed to add the menu item «Edit adjustment...» "action

    Hello

    I have an action in which I want to change an existing adjustment layer. I can't save the menu item «Edit adjustment...» "in the drop down palette layers.

    To add the step, I tried the following steps:

    1. Select the adjustment layer thumbnail icon
    2. Select «Insert Menu Item»... "in the menu palette flyout
    3. Choose "Edit settings...". "in the menu of the layers palette (how the window insert a Menu item" Menu item: layers: change the setting ")
    4. Press the OK"" button.

    This adds nothing to the action; usually, hit OK adds the menu item.

    I'm doing this right? Is this a known bug? As a solution, can someone point me to action with the step of "Edit settings...". "already in there? Thank you.

    Photoshop CC 2015.1.2 (20160113.r.355 x 64)

    Mac OS X 10.11.3

    I think that you make it harder than it is.  Just record the action and adjust the adjustment layer, you add during the recording of the action.  When did you record the action you should see that there two steps were recorded for the adjustment layer, you added during the recording of the action. "Do adjustment layer" and "current adjustment layer Set.  Insert a stop message with continue after the "make the adjustment layer ' step and check activate the dialog box in step"Set current adjustment layer".»  Layer when allowed by using the action, you can uncheck the walk of the stop.

  • Question about the menu item displays do not correctly the status of 'active '.

    Hello

    I've reproduced for purposes of training "Influence," tutorial site

    and my questions are the following:

    As you can see on the site

    Homepage 

    (1) the order of top menu contact us, has the same features as the other components (speakers, time and place) - see picture attached.

    However, when the user clicks about us contact.

    the menu item is not barred to the outside like any other.

    I checked the condition of the assets is correct.

    The anchor link is placed on the foot of page, designed on the page A-master separately from the Home Page.Active.JPG

    I tried to place the anchor to the Home Page at the last point before the beginning of footer, but no result.

    (2) also if you do a simple test, you will see that by clicking on the heading "Contact us", the menu Time & Place is highlighted

    and if you click on the 'Top' menu, or if you are in "Time and place" content and you click on 'Top', the 'Speakers' menu is also highlighted.

    Please note that this behavior is also indicated to the site of origin INFLUENCE ...

    What I am doing wrong?

    BR

    Nektarios

    Replied here: https://forums.adobe.com/thread/2063776

  • How to disable the menu using JS?

    Hello.

    I have add menu with the help of JS.

    I want to disable an added menu item.

    But the active menu option is read only.

    App.menus.Item("$ID/main"). Submenus.Item ("MyTestMenu").menuItems.item ("My Menu Item 2"). enabled = false;

    How to disable the menu value?

    Thank you.

    Hi K159,.

    It's only the ScriptMenuAction.enabled property is rewritable. This prevents the script layer interfere with regular InDesign menu items.

    So, in light of your custom object of MenuItem (myMenuItem), his associatedMenuAction should refer to a ScriptMenuAction which can be turned off:

    myMenuItem.associatedMenuAction.enabled = false;

    This translates by disabling the menu option as well.

    @+

    Marc

Maybe you are looking for

  • Fan Heatsink of heat/cooling A25-S307 problem

    I have this model A25-S307 for more than 2 years recently I started noticing that my laptop will heat up soon. Although the cooling fan starts, it doesn't do any good. And sometimes even if it's very hot, cooling fan not kick. Any suggestions on how

  • How can I move music from a SIM to my Iphone or my Itunes account?

    Hello everyone.  I finally made the switch from Samsung (Android) to I have a phone 6 s.  I had music on a SIM card that I'm trying to do more.  Can anyone talk me through how to do it please?

  • Activation of Ipad

    Hola, acabo restore el ipad mi madre lo cual salio todo well, pero tengo a problema as mi madre no is acuerda id activacion del ipad than puedo hacer?

  • When will I be paid?

    Hello It's all in the title. I've released an app, and I don't know when I will receive my money in my paypal account. Kind regards.

  • BlackBerry bold 9000 smartphone software

    Hi, need help with my 9000 "BOLD", I need to know if possible to get an OS 5 or 6 of the Os for my 9000, my OS is V4.6.0.303 and Portuguese who, in this smartphone don't have English and Italian. Thnks.