Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2
Accepted Solution

how to navigate back to the initial page with a NavigationPane

Hi, is there a method with which I can navigate back to the initial page of a application which uses a NavigationPane?

The user should not have the possibility to navigate "back" anymore.

Plase "+Like" my post if it was helpful.
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: how to navigate back to the initial page with a NavigationPane

have you tried function navigateTo ?






New Contributor
Posts: 8
Registered: ‎01-08-2013
My Device: 9790
My Carrier: P4

Re: how to navigate back to the initial page with a NavigationPane

I have the following situation. First file, main.qml:

import bb.cascades 1.0
import bb.data 1.0

NavigationPane {
    id: nav
//... Page { id: mainScreen //... onTriggered: { clearSelection(); select(indexPath); var sList = allListsModel.data(indexPath) selectedList = sList.list_name var page = listPage.createObject(); nav.push(page); } } }

 The 'page' creates fine, it is defined in another, listPreview.qml file. There I have a button, and I want to navigate back:

import bb.cascades 1.0
import bb.data 1.0

Page {    
    id: listPreviewPage

    // ...

   actions: [
        ActionItem {
            // ...
            onTriggered: {
                // SOME SQL QUERIES


 But nothing happens after clicking. nav.pop() does not work also. However, the SQL queries are performed, so I conclude the button is properly 'tied' to this action. What's wrong here?



Posts: 137
Registered: ‎10-26-2010
My Device: Bold 9900 + PlayBook
My Carrier: Rogers

Re: how to navigate back to the initial page with a NavigationPane

I suspect your issue is because the nav object isn't accessible from the other QML. If you view the device log by running "slog2info -w" in a SSH session you'll see the actual QML error which should confirm the theory.

Either add a signal on the second QML file that signals back to the main page to pop, or add a property and pass in a reference to the nav object.
Taylor Byrnes