How to add a menu item in a function call

My application requires that one screen which depends on function calls I'm adding and deleting fields according to my condition.

for example

Public Sub one()

{

-addition of horizontal field Manager

}

Public Sub two()

{

Area manager portrait \\add

}

now my question is - is it possible to add a menu item if I call the method "a."

and this menu item does not appear if I call the method "two".

If possible, pls explain me how to do...

You can check conditions before you add menuitems in makemenu

Tags: BlackBerry Developers

Similar Questions

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

  • How to add BBUI menu item description

    Hello

    does anyone know how to add a description to a menu using bbui.js item, please see the attachment to see what I mean.

    I tried searching on the web and the forums here and crackberry and I have not been able to find a solution. I also tried adding a tag data-bb-title, to see if it worked as the inner html is the description of the list items and then you add a title-bb-data for the title tag, and I thought that maybe as a consistency they could add this, if there was a data-bb-title tag, the internal HTML would be the description.

    If she fails to add a title to a menu item, can someone tell me if it is on the BBUI road map, because it helps a lot for menu long element names, you can have a short one word and a more lengthy description below.

    See you soon,.

    OLAF

    It seems that I had missed it on the wiki page, but there is the possibility of adding a data-bb-focus-text label that creates the description for each menu item, so I decided to add this comment, if anyone else has hurt to find it.

  • How to add a menu item to the bridge

    How to set a new jsx file, I created a bridge menu item?  Documentation says to look at the sample snpaddmenuitem.jsx, but I don't find it in my list of examples of sdk.  Thanks in advance for any help.

    You could modify the script and use a different ID or you could check and see if the ID is used in the first...

    MenuElement.remove (id); to remove the item, but the next time that the script is loaded, he would be back.

    MenuElement.create (type, text, loc, id);

    var MenuExists = MenuElement.find ("myMenuID");
    If (!.) MenuExists) {}
    Alert ("Menu item does not exist");
    } else {}
    Alert ("Menu item exists");
    }

    .

  • 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

  • Add the menu item for the sequence of batch processing?

    Hello

    I created a folder level script that runs at startup of Acrobat. The script adds a menu item, that when clicked, calls another function.

    I wonder if I can create a batch sequence and add a menu item for that also? I mainly want to avoid going through the whole advanced-> processing statement->... Processing batch-> find the command sequence, and then click Run.

    I've seen a lot of examples for adding menu items that call the folder level scripts, but nothing about batch sequences. Has anyone already done this?

    Thanks in advance!

    You cannot create an element of a sequence of commands menu. Nearest you

    can get is to open the batch sequences window, using the execMenuItem()

    method and "BatchEdit" as the name of the command (I'm not sure that it is still

    the same in Acrobat X).

  • How to a add a menu item for the depeneding menu existing email on the subject of the e-mail?

    Hi all...

    I'm new here and I need your help... Please

    I'm trying to add the menu item to the email existing menu depeneding on the email... I assumed using

    ApplicationMessageFolderRegistry togather with shops and Session but could not establish the code...

    any help please...

    Thank you

    Please mark the topic as solved, then.

  • I want to get rid of the Bing screen, but there is no "menu at the top of the Firefox window" for me "Select tools and then select the Add-ons menu item.

    I suddenly have a 'Bing' screen when I connect on Firefox - and I want to get rid of it. The support section of Firefox says
    1 "in the menu at the top of the Firefox window, seledt tools, and then select the Add-ons menu item." - but I don't see any 'menu item' tools, or much less modules.
    2. "in the window modules, click the Extensions Panel"- but how to find the Modules window?
    3. find the Bing and extended support to search toolbar in the list and then click on disable for each of them. ' - but what and where exactly is - this?

    At the top of the screen is only an icon of Yahoo to the left and to the right of it, a search box, 'Web search', 'My Apps,' Yellow Pages,""Weather","Updates"and"Skype ". to the right of the people, there is a green cross saying "add more applications. to your toolbar"and to the right of this one kind of gear shift looking icon saying"toolbar settings ".
    So, in short, how can I get rid of the Bing screen and how to access these tools?
    Thank you.

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

    The F10 can also be used on most PCs to temporarily reveal the menu bar.

    https://support.Mozilla.com/en-us/KB/menu+bar+is+missing

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

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

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • Add a Menu item for a Signature sign field Script

    Hello

    I have several time sheets that need to have a script to sign digital signature fields.

    I have a "Singature Script field sign" that works perfectly when used in processing batch.

    I would like to add a menu item for this script instead of using the batch, because the user no longer has access to Adobe Reader.

    I created a file with extension js, but this does not create the menu item.

    Please can someone advise where this code needs to revise:

    app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "var myEngine = security.getHandler ("Adobe.PPKLite");"}) myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
    var f = this.getField ("Surv Signature"); Sign the f.signatureSign field (myEngine, {password: 'password'}); "{, cEnable: 1, NPO: 12});"

    If this script cannot be used to add a menu item, any suggestions would be appreciated as to where else this script can be placed on the document without using the treatment in batches?

    Thanks, any help will be greatly appreciated.

    You can't put the whole script in the cExec parameter. This setting should call a local function
    that contains your script, as follows:

    app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "sign()", cEnable: 1, NPO: 12});

    {sign() function
    var myEngine = security.getHandler ("Adobe.PPKLite"); myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
    var f = this.getField ("Surv Signature"); Sign the field
    f.signatureSign (myEngine, {password: 'password'});

    }

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

  • How to add a progress bar in a function that is called recursively

    How to add a progress bar in a function that is called recursively

    Hello

    You can use ScriptUI to create progressbar in your script. Here is an example on how the progress bar can be created:

    var progressRes = "dialogue."

    {\

    text: "Auto Collection,"------

    preferredSize: [450, -1],

    View1: Group\

    {\

    alignment: 'fill', orientation: 'column ', \

    _label: StaticText {alignment: 'left', text: 'reviewing the images...} »}, \

    _Progress: Progressbar {alignment: 'fill', properties: {name: 'progress'}}, \

    _startAndCancel: button {text: 'Start',------}

    started: false, cancelled: false,

    Properties: {name: 'Cancel'} \

    },\

    }\

    }";

    var progressWindow is new window (progressRes);.

    progressWindow.progressBar = progressWindow.findElement ("course").

    progressWindow.cancelButton = progressWindow.findElement ('Cancel');

    progressWindow.cancelButton.onClick = function()

    {

    If (this.started)

    This.Cancelled = true;

    else {}

    This.Started = true;

    This.Text = "Cancel";

    this.window.startWork ();

    }

    }

    Start the 'work' when you click the Start button

    progressWindow.startWork = function()

    {

    While (this.progressBar.value< this.progressbar.maxvalue="">

    ! this.cancelButton.cancelled)

    {

    this.progressBar.value = this.progressBar.value + 1;

    This.Update();

    this.workFunction ();

    }

    progressWindow.close (this.cancelButton.cancelled? 1: 2);

    }

    progressWindow.workFunction = function()

    {

    $.sleep (500);

    }

    progressWindow.setMax = function (maxval)

    {

    progressWindow.progressBar.maxvalue = maxval;

    progressWindow.progressBar.value = 0;

    }

    progressWindow.setText = function (label)

    {

    progressWindow.children [0] ['_label'] .text = label;

    }

    -test code

    function progressTest()

    {

    progressWindow.setMax (8);

    var result = progressWindow.show ();

    Do something with result...

    }

    progressTest();

    Thank you

    -Anshul

Maybe you are looking for

  • Can I get Windows XP Home for Satellite A300-19(r) recovery?

    Hello I see that WXP drivers are available for my Satellite A300, but can I have a recovery for my Satellite A300-19(r) DVDs? Should I call Toshiba? Installation is simple and without error messages. I'm not experienced with installation of WXP and d

  • HP x 2 Pro 410 G1: Audio driver

    This is in conflict with Windows Media Player 10 - HP IDT High - Definition (HD) Audio Driver 6.10.6498.0 17 January 2014, previous Version: 6.10.6495.0(20 Dec 2013), System: Microsoft Windows 8.1 (64-bit). Or other media players (QuickTime, VLC) wor

  • Safari 9 (El Capitan) freezes

    Hello After years of reliability, Safari seems to have stopped working in El Capitan. I open Safari.   After a few Internet sites, my entire computer is out of memory and I have to force everything quit and restart. This problem never happens unless

  • services licensing Terminal Server in windows 2008 can be used on windows 2008 r2

    I bought windows 2008 standard terminal service license (unit 5) a few years ago. I wonder if I reinstall the server with windows 2008 r2 foundation, I will be able to use/install the same license key?

  • Can help a whole my to my little problem?

    I have laptop HP Probook 4530 s and I have no cd recocery, I need to buy one from any store HP in Egypt. My laptop comes with linux OS but I need Windows 7 Os recocery cd. Can someone help me?