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
New Contributor
dmitryhryppa
Posts: 3
Registered: ‎08-02-2013
My Device: Z10, PlayBook
My Carrier: pewpewpew

Can't push many times to NavigationPane

Hi, guys! Sorry for my English, please. 

 

I have a trouble, can't push 2 or more pages into navigation pane. 

What I have:

 

Page1.qml

NavigationPane {
    id: navigationPane
    Page {
        Container {
                //...any code...//
            }               
        }
        
        actions: ActionItem {
            title: "Second page"
            ActionBar.placement: ActionBarPlacement.OnBar            
            onTriggered: {
                navigationPane.push(secondPageDefinition.createObject());
            }
        }
} attachedObjects: [ ComponentDefinition { id: secondPageDefinition Page2 { //..my second page..// } } ] onPopTransitionEnded: { page.deleteLater(); } }

 

Page2.qml

Page {
    actions: [
        ActionItem {            
            title: "Next page"            
            ActionBar.placement: ActionBarPlacement.OnBar
            onTriggered: {                 
                // CANT PUSH HERE NEXT PAGE TO NAVPANE FROM PAGE1.QML//           
            }
        }          
    ]  		        
  
    Container {

    }
    
    attachedObjects: [
        Page3 {
            id: nextPage
            Container { 
               //...any code ... //  		
            }    		        
        }
}

 

How can I push third page to navpane at page1.qml? 

What if I need to push 5, 6, 10 pages? How to do this? 

Help please :smileyhappy:

 

Please use plain text.
Developer
Developer
oGG
Posts: 57
Registered: ‎04-14-2014
My Device: z10
My Carrier: Digitel

Re: Can't push many times to NavigationPane

Attach all page to push in page1.qml. Could be this.

My Answer is good? Nice! Please, Clicked the "Thanks" button, this is very helpful for me! :smileyhappy:
Mi respuesta es buena? Que bien! Por favor, haz clic en el botón "Gracias", esto es muy útil para mí! :smileyhappy:
Please use plain text.
New Contributor
dmitryhryppa
Posts: 3
Registered: ‎08-02-2013
My Device: Z10, PlayBook
My Carrier: pewpewpew

Re: Can't push many times to NavigationPane

Well, I can't get acces to navigationPane from Page2 or Page3. 

 

If I attach all pages on Page1, and then push Page2 - how from loaded Page2, I'll can push Page3 to navigationPane placed on Page1 ? 

Please use plain text.
Developer
Developer
oGG
Posts: 57
Registered: ‎04-14-2014
My Device: z10
My Carrier: Digitel

Re: Can't push many times to NavigationPane

Check this http://developer.blackberry.com/native/documentation/cascades/ui/navigation/multiple_screens_stack.h...

My Answer is good? Nice! Please, Clicked the "Thanks" button, this is very helpful for me! :smileyhappy:
Mi respuesta es buena? Que bien! Por favor, haz clic en el botón "Gracias", esto es muy útil para mí! :smileyhappy:
Please use plain text.