ListField: menu appears after clicking navigation

Hello members of the community.

I have a problem with the menu displayed on the screen with ListField after navigation click event is raised.

Here is what I do to reproduce this problem:

-navigation click on the selected entry of the ListField control,

-a new screen appears,

-on this new screen, the menu appears which is defined for the screen on which is placed the ListField control.

The click of the navigation is managed in the following way:

protected boolean navigationClick (int status, int time)
{
Field = this.getFieldWithFocus ();

If (instanceof ListField field)
{

MyAnotherScreen an another = new MyAnotherScreen();

UiApplication.getUiApplication () .pushScreen (another);

Returns true;
}

Return super.navigationClick (status, time);
}

protected boolean navigationUnclick (int status, int time)
{
Returns false;
}

The ListField is declared as follows:

lstData = new ListField (0, Field.FIELD_HCENTER);
lstData.setMargin (2, 2, 2, 2);

Reminder is set in the more standard way - there is nothing special in it.

I looked for a something, that allows to consume the click for the ObjectListField as ButtonField.CONSUME_CLICK the fact for ButtonField controls, but... so far without success. That's why I decided to write a post here.

Thanks in advance for any help!

I solved the problem.

It was caused by the fact that the screen, on which the ListField control was not closed. After you have added the line, it works fine now:

If (instanceof ListField field)
{

MyAnotherScreen an another = new MyAnotherScreen();

UiApplication.getUiApplication () .pushScreen (another);
This.Close ();
Returns true;
}

Tags: BlackBerry Developers

Similar Questions

  • Nothing appears after clicking on the Bluetooth setting

    Nothing appears after clicking on the Bluetooth setting. I use win 8. It was working GRP

    Hello

    Thank you for your response.

    -Is that the Bluetooth works fine now in Windows 8?

    I suggest to install compatible drivers Windows 8.1 for Bluetooth drivers and chipset from the following link and check if it helps.

    http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdHome?sp4ts.Oid=5359412&AC.admitted=1404004661553.876444892.492883150

    Please update with the State.

  • Previous screens Menu appearing after button click

    Hi people,

    Do not know how to solve this problem... I'm probably just not to consume an event somewhere.

    My application is a multi-screen application. The user navigates by selecting (especially) options menu or clicking / tapping on the ButtonField. I find that when a user clicks a button in the application that pushes a new screen in the stack of navigation (in his listener to change) the following happens:

    • The new screen is displayed
    • Menu of the previous screen is displayed immediately

    If the user cancels the incorrect menu... Then opens a new menu, then the appropriate menu appears.

    I Build menu on the fly by substituting the screen makeMenu method. I call super first, and then create my own menu items.

    Buttons just run a FieldChangeListener that grows the new screen in the navigation stack.

    This behavior occurs both on my BB 8350i physical device and in the BB Storm Simulator. I use the component package 4.7.0.

    How can I stop the previous screen menu to appear immediately after a button click event pushes a new screen?

    Thank you!

    Add CONSUME_CLICK in your ButtonField constructor style bits.

  • How can I prevent BB menu appearing AFTER a field is disabled?

    Hello

    I've got a field (in this case, a choiceField) that I disable after a selection is made and a button is pressed.  No problem.  But if I then click the disabled choiceField, the BB menu.  This can be avoided?  Is there some kind of consume_click-like functionality, that I can use for this?

    Kind regards

    Scott

    Yes, I found that.  Here's the code to add:

    protected boolean navigationClick(int status, int time) {
            return true;
    }
    
  • Appear after clicking on all buttons

    OK, I have a relatively easy question for you guys. I have a slide with four persistent buttons on it and I want a link to the next slide is displayed after four buttons user clicked. What confuses me, however, is that I don't know where to put the button "Advance to next page" in the timeline.

    I'm assuing that the problem is that I have all the buttons on break at the same time, but I don't know what would be the alternative.

    I have attached photos of my slides and the timeline below. Any comment that you could give me would be much appreciated. Thank you.

    slide.pngtimeline.png

    Walter OK, then you need really advanced button actions. Noëllet gave some ideas, but it will not work if the user can click several times on each button, Noëllet sorry. I'll try to explain why: in your scenario, the next button also appears if the user has clicked on four times on the same button

    Walter, you must create a user for each button variable, I tagged the v_one, v_two, v_three, v_four. You don't need to give these variables a starting value for all. They will be set to 1, when the first time the button corresponding. You will need a conditional action for each button of the tip, and as precisely reported Noëllet, the button "Next" must be initially invisible.

    Each conditional tip action will do several things, showing the text of the legend and hiding all the other legends of text, set the value of the variable to 1, check the value of all variables user and if they are all = 1 the next button will be made visible. Means the simplest will indeed create a counter so variable v_counter.

    Would use 2 Decisions: first will be a MIME standard, the second action will be a truly conditional action. For the first button, where the Caption text is TC1 it will be:

    First decision: IF 1 = 1 (will always set to true, then the actions will be always performed)

    THEN see the TC1

    Hide the TC2

    Hide the TC3

    Hide the TC4

    Assign the v_one with 1

    Expression v_counter = v_one + v_two

    Expression v_counter = v_counter + v_three

    Expression v_counter = v_counter + v_four need 3 expressions to calculate v_counter

    Assign rdcmndGotoFrame with rdinfoCurrentFrame to rewind the read head

    Second decision IF v_counter = 4

    See the BtNext THEN shows the following button

    OTHERWISE, continue

    Do not try, let me know if it works, the logic is OK

    Lilybiri


  • Add - ons are not load, JS popus not appear after clicking, firebug button appears

    Hello

    I was using Firefox 8, and then today, I noticed this not the js scripts work, the add-on does not display after a click, Firebug button at the top right is missing.

    Thinking that if I switch to 9 it will solve my problems, but it did not. How can I fix this? Am I missing something?

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

  • How can you do closed captioning appears after clicking a button?

    Currently, it is one of my screens works.  The Narrator speaks of a video is displayed.  The user clicks on play to see the video.  At the end of the video continue button appears.  When the student clicks on the button continue the Narrator speaks once again, and the course continues.

    The challenge comes in when I'm with captioning.  Given that Captivate is somehow not enough let us create closed captioning for anything other than the slide audio, does anyone know a work around that would allow me to get closed captioning should appear when the user clicks on the button continue?

    Thanks in advance for your help.

    Ahh... I think you are referring to the level of the audio object.  You put the audio maybe on the legend of the success of the button, or the value of the action of the Play Audio button maybe?

    CC text displays only the audio, slide to the objects or the audio level triggered by advanced actions.

    So if you want the text to display on the screen as a result of your action of button you need to achieve by having the text appear in a legend which is illustrated by a tip action.  If your audio is attached to the legend ONE success of the button, just use this legend to display the text in audio.

  • "Submit Canceled" message appears after clicking the email buttons

    On the forms, I was creating, a message 'Cancelled for' window has appeared for users when they click on the e-mail on the form button, although the functionality of the e-mail button works fine and does what it is supposed to do (opens the email to the correct address, subject and text) no problem).

    Anyone know how to get rid of this message 'submit cancelled?  Here is a sample of one of my documents:

    https://Acrobat.com/#d=40jQ4MZutn-BPLswgv37PA

    I use Acrobat 9.3, LS 8.2, and is of MS Outlook 2007 e-mail client.

    Thank you!

    Try this corrected file...

    https://Acrobat.com/#d=NYCyBXSnCrbUHu * 4PC2ApA

    I changed the type of button to the regular control and moved the code to the Click event.

    Thank you

    Srini

  • JSON content - image appears after clicking

    Hi all,

    I am trying to load a JSON file and load images with text information.

    I have a problem when I click on the thumbnail, the enlarged image can not be displayed, I get the following error:

    Could not load the resource: the server responded with the 404 (not found) status

    My compositionReady code:

    $.getJSON ("content.json",

    {function (Data)}

    for (var i = 0; i < = data.length; i ++) {}

    var s = sym.createChildSymbol ('template', 'content');

    s.$("title").html (Data [i] .title);

    s.$("description").html (Data [i]. Description);

    s.$("Seira").html (Data [i]. Seira);

    s.$("imageHolder"). CSS({"background-image":"URL('"+Data[i].image+"')"});)

    s.. Click$ ("imageholder") ("click", Function {}

    sym.getComposition () .getStage ().$("finte").css ({"background - image":"url("+$(this).data('largeimage')+")"});})

    });

    }

    });

    And the JSON file:

    [

    {

    'title': "Titlos 1",

    "description": "Descrpt 1",

    'seira': "number 1",

    'image': "images/wheel.png,"

    'largeimage': ' images/1.png.

    },

    {

    'title': "Titlos 2",

    'description': 'Inter 2 description',

    'seira': 'test ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    I also tried with this code:

    $.getJSON ("content.json")

    (.the)

    {function (Data)}

    Console.log ("incoming data:", data);

    $(données, fonction (index, item) {} .each)

    var s = sym.createChildSymbol ('template', 'content');

    s.$("title").html (Item.title);

    s.$("description").html (Item.Description);

    s.$("Seira").html (Item.Seira);

    s.$("imageHolder").Attr ("src", (Item.image));

    s.Play ();

    s.setVariable ('largeimage', item.largeimage)

    });

    }

    );

    and to the element that the hold is the thumbnail image, I've added to the click event:

    SYM.$("finte"). CSS ({'background-image': "URL (" + $(this). ")"}) ({Data('largeimage') + ")"});

    I think that somewhere on + $(this) +.data('largeimage') ") is the error." But I'm not.

    Your help is needed.

    Moreover, how, thumbnails, can be displayed in a table of 4 x 5?

    Thanks in advance.

    Hi Zoze

    you missed a few lines, try this, I think it should work for you

    $.getJSON ("content.json",

    {function (Data)}

    for (var i = 0; i)<=data.length;>

    var s = sym.createChildSymbol ('template', 'content');

    s.$("title").html (Data [i] .title);

    s.$("description").html (Data [i]. Description);

    s.$("Seira").html (Data [i]. Seira);

    s. $("imageholder") .css ({'background-image': "url ('" + data [i].) "}) (image_+_«_'_»)});

    .data s. $("imageholder") ("Great", data [i] .largeimage);

    s.. Click$ ("imageholder") ("click", Function {}

    sym.getComposition () .getStage (). $("fint e").css({"background-image":"url("+$(this).data('Large')+")"});)

    });

    }

    });

    If you had new problem, let me know

    Zaxist

  • pop up displays AFTER workflow navigation...

    I wrote the java code in a bean of support to show a popup before navigation occurs at the next step in the workflow, and instead the popup will appear AFTER the navigation...

    The bean of support code is:

    public String processPdfFiles() {}

    uploadMessageToShow = new RichMessage();

    FacesContext fcntx = FacesContext.getCurrentInstance ();

    FacesMessage popup = new FacesMessage (FacesMessage.SEVERITY_INFO, "", "PDF data processing");

    fcntx.addMessage (null, popup);

    BindingContainer links = getBindings();

    OperationBinding operationBinding = bindings.getOperationBinding ("process");

    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ()) {}

    Returns a null value.

    }

    return to 'display '.

    }

    The button code is:

    < af:button text = "#{viewcontrollersection13fBundle.process} '"

    Disabled = "#{!}" Bindings.Process.Enabled}"id ="b3"action =" #{FileProcessor.processPdfFiles} "/ >

    And the workflow code is:

    < rule of flow control = '__1' id >

    Format < of-activity-id > < /-activity-id >

    < control-flow-case id = "__2" >

    See the < of-result > < / de-results >

    pdfData < to-activity-id > < / to-activity-id >

    < / control-flow-case >

    < / control-flow-rule >

    What I have to change to display the pop up before navigation occurs at the next step in the workflow?

    This is the screen where I want the popup to show...

    screenwhereiwantthepopuptoshow.PNG

    Instead, the popup displays on the next screen, which is the 'show' in the navigation of workflow:

    screenwhereiwantthepopuptoshow.PNG

    You want to display the context menu as a task of long duration (like loading... or treatment..)?

    If so try to follow the following:

    AF:clientListener 1 - insert inside the af: button

    
             
    
    

    2. Add the popup like:

    
            
                  
            
    
    

    3 - create Javascript methods such as

    
            function longRunningTaskFunction(evt)
            {
              var popup = AdfPage.PAGE.findComponentByAbsoluteId('popupId');// if you use page template (with id= pt1) the id will be pt1:popupId
              if (popup != null)
              {
                AdfPage.PAGE.addBusyStateListener(popup, busyStateListenerFunction);
                evt.preventUserInput();
              }
            }
    
            function busyStateListenerFunction(evt)
            {
              var popup = AdfPage.PAGE.findComponentByAbsoluteId('popupId');
              if (popup != null)
              {
                if (evt.isBusy())
                {
                  popup.show();
                }
                else if (popup.isPopupVisible())
                {
                  popup.hide();
                  AdfPage.PAGE.removeBusyStateListener(popup, busyStateListenerFunction);
                }
              }
            }
            
    
  • I can't get the STOP button to appear in the Navigation bar, even after going through the suggestions; It will appear when the Restore Default Set window is open, but disappears as soon as a click on

    The X to STOP loading the page does not appear in the Navigation toolbar. If I right-click, select Customize, restore the default value, it is displayed; Click done and it disappears. I disabled the theme; disabled all extensions; reset the toolbar and commands; disabled acceleration. No luck.

    From Firefox 4, the Go, the buttons Stop and reload are combined into a single button at the right end of the toolbar URL or address. The button changes depending on the type of activity:

    • green arrow GB when you type in the address bar
    • Red Stop ("X") button while the page is loading
    • Reload (circular arrow) to gray when the page is finished loading.

    There are separate buttons:

    1. Open the Customize the toolbar by clicking the Firefox button > Option > toolbars OR by clicking View > toolbars > customize if using the menu OR bar right click in an empty space on a toolbar and select Customize
    2. Stop and Reload buttons will show separate from the address bar and the search bar
    3. Drag the buttons anywhere on the Navigation toolbar
      • order Reload-Stop will bring together into a single button
      • order Stop-Reload will remain in separate keys
      • or drag a "separator" in the window customize between Reload-Stop and that they remain separated
    4. Click done at the bottom right of the window customize to finish

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    You have several older versions of Java installed Console Java did not clean up when updating. Your old versions are: 6.0.16, 6.0.22

    Follow these instructions to remove older versions: http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions

  • Menu appears on touchevent click EditField. CONSUME_CLICK is not an option to the edit field.

    The Menu appeared on a touchevent click an EditField.  CONSUME_CLICK is not an option to the edit field.

    He always did, but I still have to figure out what caused change to happen.  Maybe because I went to GridFields.  Anyone has any ideas on how to avoid that the menu when I use a touchscreen device and click the EditField?

    Thank you!

    When you override navigationUnclick, return false - return super.navigationUnclick (status, time). It is a cleaner way to do it and it saved my day several times.

  • ListField in Blackberry - open a new screen after click listfield elements

    Hi guys I'm new to the Blackberry java development

    can someone suggest me how the code to open the new screen after clicking ListField point

    What is navigationClick() or something

    Thank you

    Himanshu sharma

    Beginner

    Just copy and paste into your application

    package mypackage;
    
    import net.rim.device.api.command.CommandHandler;
    import net.rim.device.api.command.ReadOnlyCommandMetadata;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.component.table.SimpleList;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class SimpleListDemo extends UiApplication {
        public static void main(String[] args) {
            SimpleListDemo theApp = new SimpleListDemo();
            theApp.enterEventDispatcher();
        }
    
        public SimpleListDemo() {
            pushScreen(new SimpleListScreen());
        }
    
        class SimpleListScreen extends MainScreen {
            private SimpleList listField;
    
            public SimpleListScreen() {
                super(Manager.NO_VERTICAL_SCROLL);
                setTitle("Simple List Demo");
                add(new LabelField("Blackberry Team", LabelField.FIELD_HCENTER));
                add(new SeparatorField());
                Manager mainManager = getMainManager();
                mainManager.setMargin(0, 0, 0, 50);
    
                listField = new SimpleList(mainManager);
    
                listField.add("Mr.Sushil");// /////////////// i want to open a new
                listField.add("Mr.Anantha");
                listField.add("Mr.Himanshu");
    
                listField.setCommand(new CommandHandler() {
    
                    public void execute(ReadOnlyCommandMetadata metadata,
                            Object context) {
    
                        if (listField.getFocusRow() == 0) {
                            UiApplication.getUiApplication().pushScreen(new P());
                        }
    
                    }
                }, null, null);
    
            }
    
        }
    
    }
    

    No need for a FieldChangeListener interface

    Run to it and if you think you've got the necessary solution just set this thread as SOLVED

  • Edition on DVD after using the movie menu.  Text of scene selection will not update after clicking on the advance button.

    I created a movie and used the Menu movie option.  I have 24 scenes.  After having engraved on a DVD the DVD will not update the text or the images listed by backstage after clicking on the button to move to the next series of scenes. However, if you click on the scene it will take you to a scene that should be on a page.   I use first elements 13 Windows 8.1 with 16 GB of RAM.  I tried different a few times and still have the same problem.  Thanks for your suggestions!

    I found my problem.  I got the Motion Menu button checked on each marker of the scene.  After that take-off it works perfectly.

    Randall

  • Menu text freezes on the screen after clicking

    Hello!

    Whenever I click on an option in Photoshop CC, the menu button is frozen on the screen. I will attach a few pictures to better illustrate the problem.

    This is my screen after the opening and closing of a file. The respective part of the menu remains frozen on the screen:

    ps_cc_menu_freezes_1.jpg

    After clicking on a plugin button in the menu "filter":

    ps_cc_menu_freezes_2.jpg

    ps_cc_menu_freezes_3.jpg

    It happens every time on any button. The only way to erase the screen-ahem, the only way I know - is through the control panel screen resolution. I just have to go to a different resolution in both directions, and it works. The thing is, this bug will come back as soon as I use the menu, which is, thus, very often because I rely heavily on some plugins or actions with no shortcuts.

    I have Windows 7 64 bit, an ATI Radeon HD 6500 M graphics card and a Bamboo of Wacom tablet.

    I have to guess a video driver problem (upgrade from AMD site), or a utility program that mess with menu design and has a few bugs.

Maybe you are looking for

  • Readycloud migration and upgrade Firmware

    Hi guys,. I got the same email that others have had about the Readycloud account migration to a single account of Netgear. I stopped using Readycloud to access because of inconsistencies with connections and now do things via Filezila without any pro

  • Best way to generate signals of activation (square wave) with my 9401 on my 9022?

    Hi, I tried seriously over the past two days to find the best way to do it. I am trying to generate a very precise square wave, controlling the duty cycle and frequency, with the OID on the 9401 in testbed cRIO 9022. I have a VI that is theoretically

  • service pack 1 error

    "Windows vista service pack 1 (KB936330), download size 1.9 MB keeps getting proposed in windows update, but does not appear in the Windows edition, or in ' view installed updates ', what should I do?

  • Lost my product key and the disc

    I have formatted my HDD accidentallly while installing ubuntu 14.04LTS. When I realized it was already at the end of my windows 7 partition was gone with all my data and the worst, it's that I lost my installation disc. I still had my key at this tim

  • incompatible drive after drive letters reformat Windows 7

    I use Windows 7 64-bit. I have 2 hard drives each partitioned inot 2 discs.HDD0 was and is drive C and M.HDD1 was D and S, but was dynamic- changed base, reformatted and repartitioned.(may be mentioned that before that, D drive was actually 2 separat