Welcome!

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

Reply
Developer
Posts: 82
Registered: ‎01-11-2013
My Device: DevAlphadevice
My Carrier: rim

Navigating b/t screens

Hi,

 

I have 3screens, in 1st screen am using navigation pane to move to next screen,navigationpane.push() method by dynamic page creation method,but now am issue is how i should go from 2nd screen to 3rd screen onclick of button  ,i tried by using navigation pane but i cant use it navigation pane here again so plz suggest me any ways to implement it

Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: Navigating b/t screens

Only the first screen should have the Navigation pane.  The rest are just pages.  But in the other pages you need the original 'nav' variable to use for pushing.  What I do is in the first screen's page  [onCreationCompleted] I set a global variable Qt.nav = navigator   (navigator is the id of the navigation pane).

 

Then in all of the other pages you can use Qt.nav to access to original navigation pane.

 

Hope that makes sense.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Navigating b/t screens

Once the page is pushed, NavigationPane will become it's parent, so it should be possible to access it as parent.push(...)

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: Navigating b/t screens

I didn't try it,  but it should work.   Let me know if it works out for you.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing