0

I have 3 pages with a BlackBerry 10 project

The first page is a navigation pane that contains a page with a list The second page is Page that contains a list The third page is another Page containing a different list

I want to be able to tap an item within my list on the second page so that it takes me to the third page. How can I do this?

1 Answers1

0

Attach page in second QML

attachedObjects: [
     ComponentDefinition {
         id: thirdPage
         source: thirdPage.qml
     }
]

And open it

//assuming NavigationPane in first QML has id navigationPane
navigationPane.push(thirdPage.createObject()); //assuming NavigationPane in 

Why will this work? Because second QML still has access to first page, or at least its NavigationPane

Bojan Kogoj
  • 5,321
  • 3
  • 35
  • 57
  • The list in my second page contains a dozen items each with a property called 'file' and contains their own qml url e.g. "lines_and_stations/Bakerloo/Bakerloo_line.qml". Is there any chance I could email you my BB10 project? – m.findlay93 Feb 02 '14 at 19:58
  • Why so many files? If you have just images/text you can set them. – Bojan Kogoj Feb 02 '14 at 20:23
  • I need these files as they are necessary for my project. What do you mean by set them? Did you mean send? – m.findlay93 Feb 02 '14 at 20:37
  • You don't need so many files. You can set all information dynamically on one QML only – Bojan Kogoj Feb 03 '14 at 08:48