To access the items in the menu screen and/or onSave()

Nice day

I'm having a problem. I try to access the data of my screen of a menuitem and onSave() method, but cannot get the variable. That is on my screen, I have an objectlist and I want to be able to record the choice that has been made. ObjectList is out of reach in the menuitem and onSave methods. I tried the objectlist initialization, after that I started my class, but before the constructor, but that only throws an exception.

Pls help.

Thank you

Mike

I probably have something like the following code and have the screen controls in the scope

public class myClass extends MainScreen
{
    private String _myList[] = {"test1", "test2", "test3"};
    private ObjectChoiceField obj = new ObjectChoiceField("Pick: ", _myList);

  myClass()
  {
    super();
    //add to screen, etc.
  }

protected void makeMenu(Menu menu, int instance)
    {
        menu.add(_save);
    }
private MenuItem _save = new MenuItem("Save Details", 110, 10)
     {
        public void run()
        {
            //Save info
            obj.getSelectedIndex(); //out of scope

        } 

}

Tags: BlackBerry Developers

Similar Questions

  • Windows Media Center will not download updates to the Guide. Netflix and Internet TV options do not appear on the menu screen.

    I tried to configure Media Center for Internet TV and Netflix. I have Setup several times and attempted to manually download the updates. So far, neither option appeared on the menu screen and I repeatedly received an error message when you try to download updates to the guide that directs me to check the update log. I find the event log, and that's what he said:

    * 10:44:58 - test of internet connection. 10:45:01 - established connection. 10:45:02 - directory of recovery. 10:45:03 - directory of recovery. 10:45:04 - directory of recovery. 10:45:05 - Directory of recovery.

    * 10:45:05 - cannot retrieve the directory (error: invalid security token.)

    * 10:45:05 - SportsSchedule the package is not available. 10:45:05 - SportsV2 the package is not available. 10:45:05 - ClientUpdate the package is not available. 10:45:05 - NetTV package is not available. 10:45:05 - MCESpotlight the package is not available. 10:45:05 - MCEClientUX the package is not available. 10:45:05 - broadband package is not available. 10:45:06 - errors during the last update. 10:45:06 - retries at 2009-10-25 04:54:37.

    Also, when I tried to contact support by email and has been asked to enter my product ID number to verify the activation, I was told it was not valid. I repeatedly entered it exactly as stated on the page of the system. I also activated the software certified on the same page of the system.

    Any help would be appreciated because I would really like to be able to use these features.

    Thank you.

    I had this same problem. That's what I did which appeared to fix (not sure if that fix or if it sets just itself). I ran the mcupdate.exe file located in the C:\windows\ehome\ directory (or some windows player is on). Yet once again, I'm not sure if this corrects the problem, or if it randomly determines.

  • I tried to type ALT or F10 to access the menu to restore the functions at the top of the start page. None worked. Now what?

    Using the information provided to other subscribers, I tried to type ALT to restore all the information at the top of the page (bookmarks, arrows, etc.), but could not access the Menu.

    Hello

    This may not work if Firefox is in full screen mode. To switch between normal mode and full-screen, press F11.

    ...............................................................................................................................

    Useful links:

    Everything on tools > Options

    Beyond the tools > Options - about: config

    Subject: config entries

    Information page (Alt + T) tools > Page Info, right-click > view Page information

    Keyboard shortcuts

    View without Plugins

    Files & Firefox profile folder

    Firefox commands

    Basic troubleshooting

    After the upgrade

    Safe mode

    Extensions of the issues

    Troubleshooting Extensions and themes

    Troubleshooting Plugins

    Test Plugins

  • Need to access the BIOS screens

    "HP Pavilion p7-1447 c desktop PC Win8x64.  FN2 gives me the diagnosis UEFI screens.  I need to enter the BIOS to set the NumLock on at all times.  How to access the BIOS screen?

    Hello

    Turn on and immediately press the ESC key to access the select start--> F10 menu to access the BIOS.

    Best regards

    ERICO

  • How to recover my apps which are lacking in the start screen and access?

    Original title: Apps

    IN the start screen several pre-installed applications are missing, for example maps, news, weather, etc. When I want to re install through the store, I get the message that they are already installed. How do retrieve my apps and access?

    Thanks for your help

    Buri Ram, Hi

    Thanks for posting your question in the Microsoft Community.

    I understand you want to know how to get Windows apps like Maps, Weather, News etc on Start menu are missing. Correct me if I'm wrong.

    I imagine the inconvenience that you are experiencing. I will try to help you in the matter of fixing.

    To help you suggest several steps to solve the problem, I would appreciate if you could answer the following questions:

    1. did you uninstall applications?

    2. don't remove you applications on the start menu?

    Follow the steps below to get the missing apps in the start screen and check the issue:

    a. press the Symbol of Windows and type one of the missing apps Ex name: cards.

    b. you might see maps in the top left corner, right-click on it and click PIN to start from the bottom task bar.

    c. check the missing applications in the home screen to see the Maps application; Get all missing apps in the same way.

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • I changed the batteries and now it sits right on the menu screen.

    After replacing the battery of the remote control for the Apple TV is now just stuck on the menu screen. It takes no dorection on the remote control. Now what?

    No light on an ATV wink when you press a button?

    If so, the remote tries to talk to the ATV.

    If this is not the case, the remote control does not at all.

    If the led blinks, and especially if it is 3 times with each press, the ATV is ignorant.

    Just a pair of remote control:

    Pair or cancel the twinning of the Apple Remote with Apple TV (3rd generation or earlier)-Apple Support

    Of course to use the second method shown because you cannot navigate the menus.

  • Cannot access the menu on 32BV701B

    Hello

    I have no remote control for my TV, model 32BV701B. I tried to access the menu by pressing both volume buttons up and down on the TV, but I can only browse the options of six albums.

    How can I access the rest of the menu with no remote?

    Simple answer: there is no way to access these functions without remote control.

  • gauge the battery to the boot screen and battery on report menu conflicting Details about the level of the battery. The gauge from the battery to the Starter incorrectly displays the low battery level that prevent the macbook pro battery retina start

    gauge the battery to the boot screen and battery on report menu conflicting Details about the level of the battery. The gauge from the battery to the Starter incorrectly displays the low battery level that prevent the start of the battery. This happens on macbook pro retina 13 inches

    When I try to startup macbook pro retina in battery mode, it will fail to start showing low battery level and an indicator to recharge the battery. It does not start on battery. When I then connect via the power cable at startup (and check the battery level), monitor of battery in the menu bar indicates that the battery is charged to the top.

    It gets really frustrating and remove my ability to use the macbook pro retina as a truly portable device...

    Appreciate any help on this

    Have you tried resetting the SMC? Reset the management system (SCM) controller on your Mac - Apple Support

  • No motion when apps chosen in the menu screen

    my 6 s more suddenly no application when you open an apps in the menu screen. pls help me. during the already selected setting reduce motion off.

    Try to turn on reduce the movement then turn off it does not try to hard reset press and hold the power button / stop and the "home" button until what it turns off.

  • Cannot get to the menu screen stuck on the screen where it shows the airtime and choosing a wi fi network.

    I can't connect to the menu screen. The only screen is related to the airplay and wi - fi networks.

    What generation Apple TV you have?  What he does? that is unresponsive to the remote control, does not connect to WiFi selection etc. can you reset the device?  How about a power cycle?

  • How to access the Menu engineering

    I use Envy 100 D410a. I want to access the Menu Engineering.

    Hello

    The best option is to make this kind of region reset under supervision of an engineer.

    This is a free support. Dial 1-800-474-6836

    However, click the icon of the envelope at the top right of this window, to check a private message.

  • I use Windows Live Mail and when I access the contacts screen I get an error message "Not responding" when I try to access anything whatsoever.

    I use Windows Live Mail and when I access the contacts screen I get an error message "Not responding" when I try to access anything whatsoever.

    Hello Brenda,.

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

     

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • BBM BasicMessageListManager disappears when I open the menu screen

    Hello

    I'm trying to integrate my application with the blackberry messaging platform. for this I use the SDK of BBM. I use a custom desktop to display messages. This screen contains a BasicReplyFieldManager defined as the State of the screen and a BasicMessageListManager that is added as a child of the live screen. This medication is ok, as long as I don't have to open the menu screen. By example, if I override the keyChar method to add messages to the BasicMessageListManager everything is ok. If, on the other hand, I use a menu option to do this, as soon as I open the menu, the BasicMessageListManager disappears. During debugging, I discovered that the BasicMessageListManagerof the Manager is set to null. That's why it disappears. The response of field does ' t disappear because it is in the State. If I put it in a BottomUpManager for example they both disappear.

    If someone has encountered this? or did someone knows how to get around this problem?

    Here is the code I use:

    replyField=new ReplyField();
    
    smilyBtn=new SmileyButton();
    smilyBtn.setClickRunnable(new Runnable() {
        public void run() {
            synchronized (UiApplication.getEventLock()) {
                SmileyScreen scr=new SmileyScreen();
                scr.show(replyField);
            }
        }
    });
    replyMgr=new BasicReplyFieldManager(replyField, smilyBtn);
    
    messageMgr=new BasicMessageListManager(0,
            MessageListManager.MESSAGE_STYLE_GROUP_MESSAGES_SAME_SENDER|
            MessageListManager.MESSAGE_STYLE_SHOW_SENDER_DISPLAY_NAME,
            MessageListManager.BORDER_STYLE_BUBBLE);
    messageMgr.toggle();
    BottomUpManager mgr=new BottomUpManager();
    mgr.add(messageMgr);
    mgr.add(replyMgr);
    add(mgr);
    

    to add messages, I use this

    MessageSender ms=new MessageSender("Me");
    TextMessage tm=new TextMessage(message, ms);
    OutgoingTextMessageField out=new OutgoingTextMessageField(tm);
    messageMgr.addMessage(out);
    

    Thank you.

    found the answear. It had nothing to do with the BBM SDK classes.

    I turns out I have outweigh the makeMenu method in the class of the screen and there I called menu.deleteAll. Once I removed this line everything was ok.

  • Brand of Smartphones blackBerry New 8530 - many pre-installed applications on the Menu screen will not work

    I just bought a BlackBerry Curve 8530 from Verizon.  This is my first BlackBerry and I'm pretty happy with it up here - but by exploring all the features, I encountered a problem.

    So far, under the screen of Menu key, I tried to use V CAST song ID, AllAccess, and Bing.  Every time, when I chose the icon, I was taken to a new page, and you are prompted to accept the terms of the service and download the software.  Then, I waited several minutes for the software to download.  When it was over, he told me it was done downloading and gave me two options: 'OK' or 'run '.

    With V CAST song ID and AllAccess, I chose "Run" and threw on the terms of service / download screen.  I hit the Menu key and tried to select the applications in this way - but nothing happened.  I mean NOTHING.  The screen remained the same, nothing open, NOTHING.  With Bing, I chose 'OK,' to see if it has changed things-, but once again, I've been dumped on the terms of service / download screen, and when I press the Menu button and tried to select the application from there, nothing happened.

    I was able to successfully download and run Blackberry App World and successfully download and run another application here-, but it seems that whenever I try to download and run an application that already appears on the Menu screen, it will not work.

    Everyone knows about this problem before?  Any ideas as much as solutions?  As I said, I'm totally new to BlackBerry, so I would really appreciate it.

    Yes, this is what happened with the app I downloaded successfully via App World.  However, applications that do not work are not there.  (And I don't think they would even if they worked correctly BlackBerry App World, which I was able to download correctly, not included in this issue: he stayed on the home screen Menu and worked when I selected it.)  Thank you, though.

  • What I need to know is the name and location of the executable that runs when you click on detect monitors in the menu screen resolution of windows 7?

    Original title: name/location of the executable that runs when you click on detect monitors?

    What I need to know is the name and location of the executable that runs when you click on detect monitors in the menu screen resolution of windows 7?

    Hello

    Your question is better suited in the MSDN forums. Please post your question in the MSDN forums.

    You can follow the link to your question:
    http://social.msdn.Microsoft.com/forums/en-us/categories/

    It will be useful.

Maybe you are looking for

  • Can I retrieve my Hotmail information; He disappeared?

    When I am logged into my Hotmail account, I found it wiped.  The Inbox was empty, my contacts have disappeared, even my spam was empty.  Is it possible to retrieve this information?  My account has been hacked?

  • implementation of scan e-mail

    I'm a major Horn IT green and my idea to solve a problem in the past was by calling the it Department.  Now I have Office out of my house and I am my COMPUTER service.  in any case, I intalled my HP Officejet Pro 8600 more and have been using it very

  • BlackBerry Smartphone password attempts has no

    Hello My friend was playing with my Blackberry and she guessed 10 lot of passwords and now my phone is completely empty. It keeps return on a blank white page, it says: JUM ERROR 513 Reset and I took out my battery etc. How do I get this back normal?

  • Error sending VPN tunnel

    Hello I have a VPN with satellite office. The user reported that session drops with my server @ DC. User is able to reconnect to a session and pick up where they have left off. This is why it seems as if the server did not realize that they were not

  • AnyConnect vpn client gives error of certificate on ios cisco 2800 series

    Dear all, I set up a vpn on cisco router ios simple anyconnect 2811 I also configured natting on the inorder of router to access the internet for local users My problem I can not connect same vpn if I use the method of the anyconnect vpn client Also