How to check the top of the stack of the NavigationPane in QML page?

Hello

I have a NavigationPane and in a handler (a javascript function) connected to a slot to manage network responses, I want to blow the top of the stack. But only if she is still there because it might be close to the user using the button back on it.

If I do just this:

myNavPane.pop();

and the top of the page has been closed by the user, this function causes a blank white page to appear on top.

So I thought I could do something like this:

if(myNavPane.top.id == "idOfSomePage")
    myNavPane.pop();

But it does not work.

Is there a way to do this?

Thank you

It works for me:

If (nav.top.objectName is "myObjectName")

{

...

}

And then just:

Page

{

objectName: "myObjectName."

}

Tags: BlackBerry Developers

Similar Questions

  • How to check the page dirty with default values existing in viewObject?

    Hi all

    I use JDeveloper 11.1.1.4.

    I have two pages in my application. I am browsing for page2 page1.

    Before opening page 2 I created new line page 2 notice of object using method 'Create Insert()' with some default values by using the ViewRowImpl class.

    My problem is that I have a button to return to Page 2. If I click the back button, then check the Application module is dirty or not.

    But it always shows AM is dirty due to I'm setting some default values in ViewRowImpl. If I avoid the default values in ViewRowImpl then AM dirty check works fine.

    My Question is how to check the AM (or) dirty Page with default values in the object view?

    My bean Codes:

    Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DataControl dc = bindings.findDataControl("AppModuleDataControl");

    ApplicationModuleImpl am = ((ApplicationModuleImpl) dc.getDataProvider ());

    If (am.getDBTransaction (.isDirty (()))

    {

    return "Page is dirty."

    }

    My Jspx Codes:

    < af:commandLink id = "cl6" text = '2 '.
    shortDesc = "Add Row in Page2"
    actionListener = "#{bindings." Action CreateInsert.execute}' = 'Edit' >

    Thank you

    David...

    see this

    http://www.techartifact.com/blogs/2013/11/how-to-check-ifdirty-is-modified-for-view-object.html

    http://www.jobinesh.com/2011/05/checking-for-dirty-data.html

  • How to check the version of the odsee?

    Hi all

    How to check the version of the odsee that was installed? whether (g 11 or 11 GR 1 material etc. etc.)

    I know for dsee7, I can easily connect to dscc and top left it there a release button.

    The command line, the option is:

    #. / dsadm - version
    [dsadm]
    dsadm: 11.1.1.5.0 B2011.0517.2158 ZIP

    Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

    [slapd 64-bit]
    Oracle Corporation.
    Sun-Directory-Server/11.1.1.5.0 B2011.0517.2158 64-bit
    NS-slapd: 11.1.1.5.0 B2011.0517.2158 ZIP
    Slapd Library: 11.1.1.5.0 B2011.0517.2158
    Frontend library: 11.1.1.5.0 B2011.0517.2158

    HTH,
    Marco

  • How to check the status of battery for Cyber-shot?

    How to check the status of battery for Cyber-shot?

    Depends on what Cyber-shot you have - in General, there should be a DISP button, or menu on site that display. The State of the battery is usually at the top right.

    The DISP button is usually the UP button.

    In addition, depending on the type of use of the Cyber-shot battery, it can never just to display the bars, or it can show a percentage.

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • How to check the balance on the gift card itunes

    How to check the balance on the gift card itunes

    Redeem it

  • Satellite A200 - how to check the temperature of the processor fan?

    Hi all

    I have a Satellite A200 that my teenagers use a little, or abuse a little! Recently, it would not start up. I suspect the fan and pulled out the fan cleaned and tested the fan on a PSU, worked out well. He put it back together, ran startup repair and now the computer is operating normally. The fan is however not appear to come at all. In the Device Manager it tells me it works very well. I'm all good with the mechanical side of the House, but I'm a quamby operating system! How to check the temp CPU or fan?

    Thought that replace the fan but don't want to go that far just to get no results. Currently using the vacuum on low like an external fan and didn't want to just run the laptop with no cooling for fear of permanent damage. Although children watch movies with her on their doona may have already reached this!

    Any advice would be appreciated.

    Hey mate,

    How to clean the fan exactly? It s advisable to use the jet of compressed air. This could blow the dust of fans cooling and, therefore, it of not necessary to disassemble the laptop.

    In addition if the fan doesn't work anymore it of necessary to replace. You can order spare parts at an authorized service provider.

  • How to check the print queue in Windows 8

    Difficulty controlling the queue with your new Windows 8? Here's a great video on how to do it:

    Hope this helps to understand how to check the print queue in Windows 8. If you have problems, let me know, I'll see what I can do to help.

  • HP Photosmart 7525: How to check the version of the firmware of the HP PhotoSmart 7525 is up-to-date?

    How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?

    Hello

    Follow these steps to check the update of firmware for your printer:

    http://support.HP.com/us-en/product/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/document/c03312867/

    Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:

    1. In the wireless menu, tap Settings.

  • How to check the size of the file to a text file.

    How to check the size of the file to a text file.

    Please explain to me.

    I'm new in LabVIEW. and have no idea about that...;

    Hi prashant,

    go to the file e/s palette and then the advanced palette which is a search palletteand sub getfilesize.vi... but this function gives the result in bytes...

    Thank you and best regards,

    srikrishnaNF

  • HP G42 notebook: how to check the heat sensor

    my laptop fire but there is no system message...

    and performance down... could be heat sensor not properly detect...

    How to check the heat sensor...

    my laptop G-42-355tu

  • How to check the use of the ram?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    Yes, Yes... and no. All applications on your computer uses RAM, not only the pagefile or system (kernel).

    What are you really trying to do?

    See http://www.petri.co.il/pagefile_optimization.htm , especially the part under "How Pagefile your system use?"

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to check the firmware version?

    Hello

    How to check the version of firmware on my device?

    Help, please!

    Thank you

    Hello mohsen122002,

    Hope that this page will help you.

    -Bryan-

Maybe you are looking for