Navigate from a to an other navigation pane navigation pane

Hi all

In the navigation pane, we can spread one component to the next.

But what happens if I want to navigate from a navigation to another part of the navigation pane.

for example: -.

hand. QML: -.

 ActionItem {
                title: qsTr ("ReadFromSD")
                imageSource: "asset:///images/action_addcontact.png"
                ActionBar.placement: ActionBarPlacement.OnBar

                onTriggered: {
                    if (_addressBook.detectSD()) {
                        var page = secondPageDefinition.createObject();
                        navigationPane.push(page);
                    }
                }
            }

and the second page definition is like: -.

 ComponentDefinition {
            id: secondPageDefinition
            source: "filePicker.qml"
            Page {
                Container {

                }
                        paneProperties: NavigationPaneProperties {
                            backButton: ActionItem {
                                title: "Back"
                                onTriggered: {
                                    /*username.text = "";
                                    password.text = "";*/
                                    navigationPane.pop();
                                }
                            }
                        }
                    }
        }

The problem that is happening, is that the flow is not the trigger from one component to the other:

NavigationPane {
    id: navigationPaneFilePicker

    onPopTransitionEnded: page.destroy()

    Page {
        titleBar: TitleBar {
            title: qsTr ("Select contacts File")
        }

        Container {
            layout: DockLayout {}

            // The background image
            ImageView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill

                imageSource: "asset:///images/background.png"
            }
            FilepickerScrollView {

                Container {
                    horizontalAlignment: HorizontalAlignment.Fill
                    verticalAlignment: VerticalAlignment.Fill

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

When I click the first page its not sailing does not to the second. When the second does not have the navigation pane it worked correctly, but as soon as I added the tag in navigation pane to it it stopped working

Please suggest

The element root firstPage.qml and secondPage.qml doesn't have to be a NavigationPane but a page element. You already have a navigationPane in your hierarchy of context and as a result, you can refer to your main QML file NavigationPane directly.

For example:

hand. QML:

include bb.cascades 1.3

NavigationPane {
  id: root
  Container {
    Button {
      text: "Push the first pane"
      onClicked: {
    var first = firstPane.createObject();
    root.push(first);
      }
    }
  }
  attachedObjects: ComponentDefinition {
    id: firstPane
    source: "firstPage.qml"
  }
}

firstPage.qml

   include bb.cascades 1.3

    id: navigationPane

    // The initial page
    Page {
        content: Container {
            Button {
                text: "Display First Page"

                onClicked: {
                    var second= secondPage.createObject();
            // Use the navigationPane defined in main.qml
                    root.push(second); //pushes the defined component definition (first)
                }
            }
        } // end of Container

      attachedObjects: [
        ComponentDefinition {
            id: secondPage
            source: "place the asset filepath to your secondPageQML here"
        }
    ] // end of attachedObjects list
   } // end of Page

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Stupid question, I know, but after years of use of Firefox, on this one I can not find the icon of reloading the Page? Help, please.

    In the past, when I refresh a page, I just went to page reload icon in the toolbar. On the new version, I can't have the icon charge. Sorry I know this is a very stupid question, but I can't find that reload icon. The toolbar is very different from p

  • My computer has been infected by a virus or worm

    Recently, I upgraded my computer to el capitan since then he worked very slowly I can't stop, and firefox won't open. 2 days ago, I added an application named Dr. done wondershare to try to restore images lost from my phone. Today I went to Keychain

  • Faulty keyboard Portege 3500

    The keyboard has stopped working. Seems that one key is blocked 'on' - show the ' # ' at any time. This requires it a replacement keyboard, or can it be fixed? Where to buy a replacement if necessary? Thank you Brian

  • HP 550-152na: could not find the driver

    Hello - after having to clean install windows because of the mistake of starting I have lost the driver for my graphics card and cannot find it on the web for download. This is the AMD RADEON R5 330. I tried the M330 and one suggested by AMD detect s

  • Change windows rename numbering scheme

    In most versions of Windows, you can select multiple files in Explorer, right-click, and select Rename.  It is a very useful utility; However, I need to change the numbering scheme.  The default schema adds (1), etc. until the end of each file name.