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

New Contributor
Posts: 6
Registered: ‎04-01-2013
My Device: 9900
My Carrier: AT&T



I am using a NavigationPane for my app and im stacking pages using something like:

attachedObjects: [
            // Create the ComponentDefinition that represents the custom
            // component in myPage.qml
            ComponentDefinition {
                id: pageDefinition
                source: "myPage.qml"
Let's say I go to a page I created called "mypage2.qml", where I make some calculations and change some things.
The problem is when I got back to the main page and I want to go back to "mypage2.qml."  When I do so, the page does not display the previous calculations I made on it, and instead it returns to its original state like if I had never done anything in that page. 
I am not sure what is wrong here or if thats is supposed to happen using this type of code.
Thank you!
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: NavigationPane

how could it possibly save these values if you create the page from a definition dynamically?
you could store the results on your mainpage or use a c++ class to store them (like a service).
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter