onPushTransitionEnded to replicated onExposed (legacy event of BB OS)

Hello

I'm trying to reproduce the behavior of onExposed/onUiEngineAttached of BB OS (pre BB10) using the NavigationPane onPushTransitionEnded. But the problem is that the event is on the container (NavigationPane) and not on the view/page (Page)... so when the page receives the event, I am unable to differentiate whenter that this event should be handled or not...

Code snippets:

NavigationPane:

function displayPage1(){
page1= page1Definition.createObject();            navPane.pushTransitionEnded.connect(page1.handleOnPushTransitionEnded);
}

function displayPage2(){
page2= page2Definition.createObject();
}

Based on the code snippet above, when I can displayPage2(), page2 is created and displayed, BUT that also trigger the 'handleOnPushTransitionEnded' page 1 slot...

onPushTrnasitionEnded is provided with a 'page' argument, but its type is ' QVariant (bb::cascades:age *)' where 'this' is an object of javascript... so I couldn't compare them by type, address, or by the attribute "id"...

Someone has met and solved this problem before? Any contribution is appreciated!

I was able to work around this problem by delegating not signal to the page, but use the event instead in the navigation pane:

NavigationPane {
onPopTransitionEnded: {
        console.log("[HomePage.NavigationPane] onPopTransitionEnded for page:" + page);
        if (page.objectName == 'page2') {
            page.stop();
        }
    }
}

So, the difference is that... a page in itself is NOT able (limitation) listen properly to onPushTransitionended events... instead it should be handled outside the page IE in the NavigationPane

Thus, because it comes to QML and javascript, almost every property is accessible outside... so that's good enough as a solution for me.

Tags: BlackBerry Developers

Similar Questions

  • How to handle the "DB_EVENT_PANIC" event on the replica

    Hi experts BDB.

    I write db HA 4.6.21 the bdb version-based application. Two processes running on two machines, a master who will be read/write db, one as a desire to only read backup db. It seems backup will sometimes get 'DB_EVENT_PANIC' event for reasons that I didn't. What should I do upon receipt of these events? Should the devil out and run it then open env again for recovery? A process can reopen the environment for recovery without exit first?

    Another issue is not related to the above question: If use bdb ha (api base), can it be 3 process, termpol1 is neither master nor customer but simply write db, process2 is as master of rep that open the same env (just for ha, will not write db), process3 is the client that connects to the master to get synchronized db?

    Thank you

    Min

    I write db HA 4.6.21 the bdb version-based application. Two processes running on two machines, a master who will be read/write db, one as a desire to only read backup db. It seems backup will sometimes get 'DB_EVENT_PANIC' event for reasons that I didn't. What should I do upon receipt of these events? Should the devil out and run it then open env again for recovery? A process can reopen the environment for recovery without exit first?

    After a panic you should exit all of your process, and then run a recovery. You can run the recovery using the db_recover or by performing a DB_ENV-> open() with the DB_RECOVER flag. Refer to the reference Guide of the 'Restore Procedures' section for more details.

    Another issue is not related to the above question: If use bdb ha (api base), can it be 3 process, termpol1 is neither master nor customer but simply write db, process2 is as master of rep that open the same env (just for ha, will not write db), process3 is the client that connects to the master to get synchronized db?

    For most applications of replication, the main environment and customer environment run on the different sites/machines. It is also possible to run the main environment and environment of the client on the same machine, but there are still distinct environments with separate home directories.

    All database entries should be made on the main environment. If your termpol1 needs to use the same environment as process2. Your process2 must run first, to set up and start the environment as a master of the replication. So your termpol1 can start and perform its writings. You can start your client/process3 anytime. Refer to the reference Guide section "Building replicated applications", in particular the paragraph starting with "take the case of several process...". ', for more information.

    Paula Bingham

    Oracle

  • R100 usb LEGACY NOT WORKING ON REPLICATOR of PORT

    I have a R100, which does not recognize usb keyboard or mouse at startup. If I plug them in after booting the OS detects.
    If they are directly attached to the computer laptop it IE without port replicator no problem they are recognized at startup upward.
    I have updated the Bios to version 1.4.
    Chipset RELOADED drivers.
    Unloaded drivers for usb devices.

    Anyone got any ideas?

    Hello
    very interesting.

    What Replicator do you use?

    Good bye

  • Tecra M7 & express II PA3680E-1PRP port replicator do not work together

    Hello

    I ve a Toshiba tecra M7 in recent years and have just bought a brand new sealed express duplicator II model PA3680E (docking station) but unfortunately it does not work and a new replacement, sent by the provider does not work.

    What's happening:
    With docking station connected to the start; nothing happens, and the Green dock light stays off.

    Windows when I put the tecra m7 on the dock it connects and disconnects immediately then will not reconnect. The power of power port, the lan port and the power switch work on the dock, but I understand that these are just happening through connections. The Green led power lights up also for less than a second.

    For example, when I do a connection hot, windows is connection chime followed immediately by a chime of disconnection and restores, also all USB connected devices flick-on and immediately off the coast.

    I ve tried under the original Toshiba windows XP install (with the latest Toshiba) and a fresh install of windows 7 (fully updated with all the update from Toshiba). BIOS is the latest available 3.50 (also tried 1.70 & 3.20 bios). tried bios USB legacy on and outside.

    Can someone please help

    Hello

    > With docking station, connected to the start; nothing happens, and the Green dock light stays off.

    The green light that is placed near the eject button it lights up green during normal operation and must be extinguished if the phone has been disconnected.

    If the led does not light green, so I guess that the laptop is not connected correctly.

    If you connect the laptop for the first time to the port replicator, a message should appear stating the device connected to the port replicator are ready to use.

    In my opinion, there could be a problem with the pins or connectors, but the question is what may be touched connector: on the side of Tecra or port replicator

    However, I think that go you to your dealer and need to test another.

  • Portage Z30-A-13W connected to the high speed Port Replicator III - USB problems

    Hi all.

    We recently bought a new Portage Z30-A-13W and Hi-Speed Port Replicator III.
    Setting network and graphics work correctly with port replicator, but the USB ports don't work at all.

    I tried the port replicator USB 2.0 and USB 3.0 and I can't seem to work with a keyboard, mouse, USB key or a mobile phone.

    In the case of mobile phones, it is also no output power of the ports that the mobile does not start to load.

    At any one another experianced this problem and what was the resolution.

    Thank you very much

    Jonathan Davies

    Hello

    As far as I know additional drivers are not really needed to use the USB ports.
    This is why I m wondering why don t USB ports work.

    It might be possible that ports high speed Port Replicator III USB are faulty, but to be honest, I can't imagine that all 6 USB ports may bad work at the same time.

    So maybe it s a software problem.
    First of all, I would recommend the default BIOS and check the USB legacy support for keyboard and mouse could be activated.
    After access to the Device Manager and remove / delete the USB hubs and controllers in the list of devices.

    Keep high speed Port Replicator III connected to the computer and restart the device.
    Usually, the system should recognize automatically deleted USB ports and must update the drivers of USB ports.

    I hope that the USB ports don't work after this short workaround solution.
    Keep your fingers crossed.

  • Portege R500 - configure the parser on the Port Replicator

    The system is Portege R500 with a port replicator Port MS Vista running. Port replicator has a Philips 19 "LCD monitor

    System has BEEN configured so that when the system was in the duplicator monitor 19 "inches would be active and system monitor is inactive.

    But, a few days before the following events occur, when the system is in the port replicator and its turned on screen (the one with the mobile progress indicator) Windows startup is displayed on the Port Replicator monitor, then the screen turns white and displays them on the screen on the monitor system, after entering the desktop on the monitor system.

    I live in a remote area, so I can't pop in the store of the local computer to ask for help.

    I would appreciate someone to give me some guidance as to where it configures the port replicator monitor configuration. I looked at the section Configuration screen Control Panel but it seems to be the performance of two monitors, it appears not to address the peculiarities of a laptop computer with a port replicator configuration

    Thank you

    Hello

    I have no Portege R500 but I ve used external monitor connected to my Tecra duplicator.
    Can you please tell me how you have configured previously?

    What is your external monitor set as primary monitor?

  • Tecra A11 & Express Port Replicator II - USB problems

    Hello

    I'm having a problem with a port replicator that I simple couldn't have resolved for months. I'll try to explain this as best I can.

    We have a Tecra A11, which seems to work fine running on Windows 7 Professional. When the Tecra A11 is pluged in an Express Port Replicator 2, not USB ports in the port replicator's work at all. Very good cell phone fees and the LAN switches on the replicator fine, but the USB ports simly does not work under any circumstances. It would also be interesting to note that the green light next to the "eject" button lights never really.

    I downloaded and installed the latest series driver for Windows 7 from the Toshiba support page which has no effect. We had 2 replacements for Toshiba because they also agreed that the previous, we had were not woring correctly, but this obviously was not the case because we still have the same problem with our 3rd unit. The Tecra A11 was sent back to Toshiba with case notes clearly describing the question, and he was sent to us "no fault found".

    Unfortunately, we don't have any other laptops to test on the port replicator. but I'm seriously suspect that the problem lies in the laptop, rather than the port replicator. For any idea or suggestion will be greatly appreciated.

    Kind regards

    Steve.

    Hello

    According to your message, you are not sure if the problem is related to the defective laptop Tecra or express port replicator.
    Hmm theoretically the problem might be related to defective express port replicator or Tecra.

    If found some information on the USB ports and the repliators port:

    + Make sure that the element of Legacy USB in the BIOS emulation is set to "Enabled". This feature only works for the keyboard and mouse. Also note that the keyboard and mouse must be connected before you start the computer. A USB mouse, keyboard or the floppy drive connected to the Port Replicator via any other connection that a hub of the first level, will not work until the operating system has started. +

    I also recommend to check the version of the BIOS; If the most recent BIOS is available, then you need to update this

  • Tecra A11 - USB is not loan Express Port Replicator II

    Hey people,

    I'm absolutely fed up with this, so I hope you can help me with this: Iam using a Tecra A11 with Express Port Replicator II. There are three problems:

    1 USB mouse and USB keyboard are not ready to use so that until that Windows7 is fully loaded (BIOS Mode)

    2. There are USB devices such as USB-HDD, TV Tuner, telephone mobile-station host connected to the port replicator. Laptop remains in the Boot Logo screen and does not start until I have disconnect all devices. So I have to disconnect it, restart it and anchor it again. quite annoying.

    3. using the 64 bit version of WIndows 7 and playback sound stops regularly for 2-3 seconds when I use the speaker plug from the docking station. Using the plug in the laptop itself - no problem.

    I am absolutely fed up with it. Anyone have any idea?

    Thank you!

    Hey Buddy,

    With regard to the problem of USB:
    You have enabled USB legacy support in the BIOS? As far as I know, there is always such an option in the BIOS and it must be allowed, if you want to use USB devices before Windows starts.

    And using his most recent drivers for your laptop? You can check it on the Web from Toshiba site if a newer version is available:
    http://EU.computers.Toshiba-Europe.com

  • Tecra A8: Problem with the USB printer connected to the Port Replicator III

    Hi all

    I have a problem with my Tecra A8, year Advanced Port Replicator III and a USB printer. With the printer connected to a USB port on the Port Replicator, I have to wait 2 minutes for printing to start. When it is connected directly to a USB port on the laptop and the laptop disconnected from the Port, printing starts immediately. I have the latest drivers from the Isensys of Canon LBP 2900 installed and Windows Vista professional as the operating system.

    I called the technical support of my country, but her is not recorded similar problems.

    A person with similar problem? Some help would be very appreciated.

    Thanks in advance.

    Hello

    Seems like a strange question... Already done the standard procedure in the event of such errors? :)

    The standard procedure is somehow similar to the following:

    -Update your BIOS
    -Update all the drivers for your machine
    -Update your printer drivers
    -Update your operating system

    If all else fails, then try an another Portrep if available, maybe you need to contact your dealer for an another portrep for the test.

    Something like this should be your way. And then you sucessfully made a TROUBLESHOOTIN´ ;)

    I'd be happy to hear feedback from you on your situation...

    Welcome them

  • sense events pending framework?

    Hello LabVIEWers,

    My current mission is to create a work around for a problem in some legacy code.  Let's say that it was written in an unconventional way.  It would be great if there was a way to detect if there is any event current control.  So far, I did find a good that will do.

    I would like ideas.

    Thank you!

    Roger

    Hi again,

    Well, I guess that I am reduced to an another craft, where I put in is long enough for things to do.

    Thank you all,

    Roger

  • S205 & Win8 - how to force the legacy BIOS mode?

    Hello

    AFAIK the S205 features of two different interfaces:
    Legacy and UEFI BIOS.

    Windows 8 is compatible with both.
    With the help of UEFI, Windows will partition the drive with TPG.
    Using the BIOS, it will be with the MBR.

    The main problem is that - probably due to malfunction of the drivers - there are a few major problems when using GPT with this netbook. You can find many discussions about cards WiFi works do not for example.

    I'm looking for is an option to start the installation of Windows 8 through the BIOS from a USB interface.
    The S205 does not have an optical drive and I not one or the other.

    Thanks in advance for any help.

    PS: As it is not a driver issue, I'm not this announcement in forum Windows 8.

    After some research, it comes to use successfully the Ralink Wifi with Windows 8 on the s205 - own USB Installer.

    You must install Windows 8 in legacy mode (click on "IDE" in BIOS).

    BUT - you must * also * remove "bootmgr.efi" and USB \efi\, before installing. If you do not, the USB key will still install in EFI!

    If you have already installed Windows 8 IDE USB mode, you should check whether your installation is IDE/legacy or EFI - open this log file:

    \Windows\Panther\setupact.log

    Search this text:

    Callback_BootEnvironmentDetect: Environment detected: BIOS

    = you have IDE/legacy install

    .. .or

    Callback_BootEnvironmentDetect: Environment detected: UEFI

    = you have EFI install

    (This information is extracted from http://forums.bit-tech.net/showthread.php?t=209045)

    If you see EFI/UEFI in the log file, you must reinstall Windows 8.

    The only problem I have now is that Windows is freezing sometimes, so I intend to reinstall from different USB drives in the event of corruption of file etc.

    I hope this helps.

  • Cannot remove error of oldest mail replica

    Anyone know what causes this error?  Ticket opened today;

    ---

    Warning event of storage array that ps6100xv repeated 3 times

    subsystem: MgmtExec

    event: 8.3.45

    time: Fri Sep 23 01:50 2013

    Hourly NIGHT could not delete the oldest replica according to limit max-Dungeon. How to create a new replica.

    A common cause is frequent replication schedules.  It's not as far as the table is occupied by the IOs management locally, who are prioritized.

    I adjust the calendar and shift several alumni to see if that helps.   Having replicas more than expected, is not a bad thing.

  • Events that fire after screen infrastructure?

    Hello

    I am writing a little game.  I use the same top-level class that we've all seen in the tutorials.  He did push a TitleScreen object, which extends the fullscreen RIM class, in the stack to display and then delve into the event dispatcher.  Initially, the TitleScreen contains only a background graphic and a LabelField that says "Loading"... ».

    Then, the GameScreen object is very large and its constructor instantiates a large number of other objects.  Instantiating this object takes between five and ten seconds to arrive, according to the model of Blackberry.

    Once the GameScreen object is loaded into memory, I change the TitleScreen, add() and delete() methods in the class of the screen to remove the "Loading...". ' LabelField and replace it with a ButtonField labeled 'Start '.

    I used to have the code for these three steps in the main() method.  Everything works well except that the 'Loading... '. "TitleScreen is never drawn on the screen until the program begins the GameScreen object is instantiated and all his baggage.  Point of view of the user, when my program starts the phone just hangs for five to ten seconds, and then the TitleScreen with the 'Start' button appears. It's the wrong shape and that's the problem I'm trying to fix.

    The idea is to paint the TitleScreen with the 'Loading... '. ' LabelField on the screen, THEN instantiate the object GameScreen big, fat, sloppy.  Looks like a good theory, but it depends on the frame RIM let me know when the initial TitleScreen is painted and displayed on the top of the display.

    In reality, the RIM framework provides appropriate notification that the TitleScreen is displayed.  In the TitleScreen, I replaced the onExposed() method.  However, when the screen first, onExposed() is not called.  My program crashes with the 'Loading... '. "TitleScreen displayed.  Apparently, the framework calls onExposed() only after that the screen is hidden, and onObscured() is called.

    I tried to rename the method so it replace onDisplay(), but this method is called before the TitleScreen is painted on the screen, so this does not solve my problem.

    I tried to rename the method so it replace onFocus (int), but never, the framework calls this method when the form is first displayed.  Still, my program hangs with the "Loading...". "TitleScreen displayed.  I think it's because the TitleScreen contains no fields that can receive the focus.

    I tried to rename the method so it replaces onFocusNotify (boolean), but again, this method is called before my TitleScreen is painted on the screen.

    This seems to cover all the methods that I could replace in the Screen class that could solve this problem.  I can't think of anything that could help me.

    How can I get the frame RIM to wake up my event feed and let me know that my screen was pushed, painted and displayed?

    I suspect that what is happening is maybe because you do not use the framework correctly.

    User intervention, including painting the screen and user input processing, occurs on the event Thread.  It is a special thread that is, if I understand correctly, the same Thread that is used to treat the main().  In any case, at the start, when you issue the thrust at bottom, it is not actually processed immediately, it is planned for the thread of events.  This push for complete, you enterTheDisplatcher.  Given the way you treat your startup, this does not happen until you actually complete your initialization which includes the construction of your intended to GameScreen.

    In reality, all you have to do is to display the loading screen, then start a Thread that creates the object background GameScreen.  Once created, it can update the screen way * ensuring that he returned to the event Thread to do this processing.

    There are examples of splash screens in the KB and forum (search for splash screens).  They are similar to your loading screen work, however, memory, they all assume that the second screen is available - so spend you the start of the second screen to display screen and how long to stall and it does that a stall, a pop (of himself) and a boost (from the replacement of the screen) I don't think that this process will work for you , because of the delay in the creation of the replacement screen.  But you might find something of value in the KB so please take a look.

  • event minimized

    is there an event when your application is reduced to a minimum and when it is open again, after it has been minimized? onExposed() he does not because he is not called right after that you open the application to be reduced to a minimum.

    Take a look at UiApplication.activate)

  • onExposed not called

    Hello

    I have a problem that a screen is not be changed because it's "onExposed" method is not called when I expect to be.

    Here's the scenario:

    1 screen 'foo' extends screen and is displayed.

    2. the user selects a menu item which, among other things, displays the 'bar' screen that extends PopupScreen.

    -'bar' screen in the event thread by using the following statement

    application.pushGlobalScreen (bar, 0, Dialog.GLOBAL_STATUS);

    3. the 'bar' screen gets popped display by a background with the following thread.

    synchronized (application.getAppEventLock ()) {}
    application.popScreen (bar);
    }

    4. after step 3 I was expecting the overloaded method 'onExposed' of the screen 'foo' to be called and refresh the data in the form. But this isn't the case.

    I tried a number of things, but I can't get the screen hidden to cool off when it is displayed.

    I run on the global phone OS4.2.1 Simulator.

    Any suggestions would be greatly appreciated.

    News Flash! The problem was in my code. onExposed has been called, but not when I thought it would be.

Maybe you are looking for

  • ServeRaid 8 k driver for TD100 SBS 2008 64 bit

    Hi all someone know where I can get the driver mentioned above? In the drivermatrix, I found that the driver for sbs 2003 Greetings from the Germany Tom

  • Time display time display QuickTime vs FCPX

    I need help to understand what I see in FCPX. I have video files on a map of the camera. When I import a clip that I see, for example, an hour of starting 12:39:03; 20 and an end time of 12:49:18. 23. the shows 'content created"November 11, 2015, 18:

  • Cisco ISE posture assessment and client provisioning

    Hello I have the Cisco ISE and Cisco IOS device. I configured the RADIUS between these devices. Also, I configured RADIUSbetween ISE of Cisco and Cisco ASA. Now I want to know that how to posture assessment for these devices (ISE of Cisco and Cisco A

  • XPS 420 Blu Ray does not play because of the HDCP copy protection

    My powerDVD program displays an error 0110 that she cannot enable HDCP encryption and stop play on blu ray movies using the DVI - D connection. Plays well with VGA cable. Video card Radeon 2400 with the last driver and is HDCP. Monitor is 2408WFP and

  • Problem of extensions on Windows 10

    Hi allI have problems on Windows 10. First my Applications of Photomerge Lightroom CC start no more, they do nothing.What I find most disturbing, is that I tried to install an extension for Photoshop. To do this, I installed the extensions Manager, a