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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Contributor
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 Smiley Happy

 

Developer
Developer
Posts: 60
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! Smiley Happy
Mi respuesta es buena? Que bien! Por favor, haz clic en el botón "Gracias", esto es muy útil para mí! Smiley Happy
New Contributor
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 ? 

Developer
Developer
Posts: 60
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! Smiley Happy
Mi respuesta es buena? Que bien! Por favor, haz clic en el botón "Gracias", esto es muy útil para mí! Smiley Happy