How dynamically update the menu items?

Hello

How can I update menuitems dynamically?

Suppose I have an audio player that has five play, pause, resume, stop, quit option.

so when the user select break then it can select that resume, stop or exit.play is not seen in the menu.

Thankx

Override makeMenu and add only the items you need based on your internal state.

Tags: BlackBerry Developers

Similar Questions

  • How dynamically update the role of oracle using the trigger

    How dynamically update the role of oracle using the trigger:

    I have svmanger owner of schema in the database. There are five tables belonged to svmanager.

    Table A, B, C, D, E.

    I have a role that is played only to these tables under the scheme: SVMANAGER_READ_ONLY

    now, if I create a new table F under svmanager. the role that svmanager_read_only does not work is updated, so the user had assigned role cannot access table F.

    is there a way to create the trigger for this role dynamically update any when a table is created or deleted?

    Thank you.

    I really really really don't suggest to do this - it's a bad habit. If possible I'd just adding the grant as part of the steps to the role on the new creation of the table.
    But for fun here's how you can accomplish this:

    create or replace procedure execute_grant(v_ddl in varchar2)
    is
    begin
       execute immediate v_ddl;
    end;
    /
    
    create or replace trigger catch_create_table_trg after create on schema
    DECLARE
    
    ddl_job number;
    ddl_str varchar2(50);
    begin
       IF ora_dict_obj_type = 'TABLE' THEN
    
           ddl_str := 'GRANT SELECT ON '||ora_dict_obj_owner||'.'||ora_dict_obj_name||' TO SVMANAGER_READ_ONLY';
    
           dbms_job.submit(job => ddl_job,
           what => 'execute_grant(''' || ddl_str || ''');',
           next_date => sysdate+(5/24/60/60));
    
       END IF;
    end;
    /
    

    Test it

    create table F (id number(1));
    

    Validate

    select * from ROLE_TAB_PRIVS where ROLE = 'SVMANAGER_READ_ONLY';
    
  • How to add the menu item in the context menu of the Gallery

    Hi all

    I am new bie BlackBerrry development. Does anyone know how to add a menu item in the context menu of the BlackBerry Gallery. In other words, when I am browsing photos in the Gallery, click on the menu, there will be a configurable option so that my request will be executed when I select this item.

    Thank you
    TuanSandman

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800367/How_To _...

    Check the class ApplicationMenuItemRepository for applications where you can add the custom menu item.

  • How to highlight the menu item based on the position of the scrolling page?

    Hello

    I am interested by learned how to achieve the effect in the upper left corner of this Web page:

    http://trashpixels.co/#one

    When you click on any of the six gray menu icons (grey rectangles), you scrolled down to the deep page and arrive at the location one or two or four or what you clicked on... it's easy. But how do I get the menu item (a rectangle) to be highlighted (change to green) to indicate the current position on the web page?

    Any suggestion would be appreciated

    Thank you

    Bradley

    Hi Bradley

    You can use the anchor links for menu items that would be would be the active state once that section of the specific page of scrolling.

    This video explains the process:

    https://www.YouTube.com/watch?v=qNsI6DHz5Co

    Thank you

    Sanjit

  • How to hide the menu item 'bookmarks '?

    Firefox 5.0.1
    At the menu bar: 'File', 'Edit', 'View', 'History', "Bookmarks", etc.
    How to hide the element of "bookmarks"?
    I have the add-on PLAINOLDFAVORITES installed and
    I forgot how with v3.6.18.

    Thank you very much

    Click the Firefox button and click on Add-ons -> Add-ons Manager, tab opens-> go to Control Panel Extensions-> select your add-on "Favorite PlainOld" , click Options

    Check and tell if its working.

  • How to hide the Menu item in the Oracle Forms Menu bar.

    Hi all

    I have a requriement wherein I have to hide these oracle forms menu bar menu items whose rights are not available with the user.

    I already have enable / disable the option on the order of the day, but required to not display these items that are users do not allow access to users.

    Is it possible to do this task? Please help and guide me.

    Thank you

    Atif Zafar

    Perhaps a typing mistake?

    Your menu is named MAIN_MENU_MENU, in your code, you use only MAIN_MENU.

  • How to add the menu item in ContextMenuClipboardItems?

    Hello

    In my project on right click on the text entry it is menu as copy, patse etc, I add 'Translate the menu' in ContextMenuClipboardItems.

    Please suggest on this how can be possible

    Thank you

    Sunil

    Hi Vibhti,

    Thanks for your help

    But I found the solution

     

    var mainMenu:ContextMenu = new ContextMenu();

    var menuitem:ContextMenuItem = new ContextMenuItem ("Translate", false);

       

    mainMenu.clipboardMenu = true;

    mainMenu.customItems.push (menuitem);

        

     

    textArea.contextMenu = mainMenu;
    var selectedTextField:TextField = textArea.mx_internal::getTextField() in the TextField;
    selectedTextField.contextMenu = mainMenu;

     

    Thank you

    Sunil

  • How to add a menu item to new tools Panel

    Have anyone knows how to add the menu item to the "new tools Panel.

    For example,.

    Add (Menu object > wrap distort > make) to "new tools Panel. I try many way and research, still can not solve my problem.

    Does anyone have an idea which can add a menu item to new tools Panel.

    Thank you.

    Screenshot:

    Screen Shot 2016-01-26 at 11.26.07 AM.png

    Solve the problem

    Action > new Action > insert the Menu item > View button

  • 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.

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • How to remove the menu bar of the last update of itunes?

    The little square that used to appear on the top, isn't there anymore, so I can't go there to remove the menu bar that appears under the player. Before the update, the menu and the options were in a little square on top (left) and you could turn on and turn off the menu bar there, but now that I updated Itunes, that square doesn't appear anymore, and the menu bar just stays there. I tried everything to remove it but I don't know how. It kinda bugs me seeing the menu bar there since i'm used to just have it in that little square on top.

    Can you please take a screenshot, using shift + command + 4 (the cursor will turn into crosshairs), to draw a rectangle around what say you all?  I can't follow what you describe.

  • 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

  • How to change the text in the menu item

    I have a menu item which reads "Untitled." I'm trying to change it. Nothing in the manual. Help appreciated.

    Have you changed the name of the page in the plan view or the menu item?

    Kindly go to the plan view and double-click the name of the page, as shown in the screenshot below. Once you change the name of the page, the menu automatically changes to reflect this.

    http://prntscr.com/8c8fv5

  • Need to give only the menu item organization to an admin, how

    Hello

    I have a requirement that there should be a Director of the organization that will be able to see only the Organization menu items such as create and manage. It should be able to create new organizations as well as to manage the existing organization.

    I did these steps:
    1 has created a group of orgAdmin. Given A menuitems - create & manage org and gave all the permissions.

    I created a user and gave that group membership.
    But when this user logs in, he is able to see only the menu items and is not able to create or manage organizations. He is not able to create or search existing org.

    Help, please.

    Try ading the group administrator of the organization...

    concerning
    VM

  • Remove the Menu item

    Hello

    I add a menu item in the MENUITEM_SYSTEM and then I would remove it, but even I use ApplicationMenuItemRepository.getInstance ()... removeMenuItem (ApplicationMenuItemRepository.

    MENUITEM_SYSTEM, myMenuItem); the menu item, always in the list of the menu. Anyone know how to remove it?

    Thank you

    Make sure it is the correct menu item you have added (check the object id).

    You can use the runtime store to ensure this on multiple instances / (as an autostart entry point)

Maybe you are looking for