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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
DNSalehi
Posts: 38
Registered: ‎01-26-2011

How to get id of page on stack

So I have a page that can be pushed from two different NavigationPanes. The problem is when I want to pop the page, I'm not sure how to call the pop since I don't know which of the two panes the push came from.

 

Is there a simple way to get the id of the page that did the pushing?

Please use plain text.
Developer
Zmey
Posts: 896
Registered: ‎12-18-2012

Re: How to get id of page on stack

Page has it's navigation pane set as it's parent. You can use a parent property (or parent() function in C++) to access it.
Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Carrier: All

Re: How to get id of page on stack

[ Edited ]

I remembered we had discussed one similar issue:

http://supportforums.blackberry.com/t5/Cascades-Development/Store-a-NavigationPane-as-a-QML-property...

 

You can simply use xxx.parent to find the parent  (xxx is the id of the current page)

You can use xxx.parent.pop() to pop the current page.




p(^_^)q
Good good study, day day up
Please use plain text.