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 Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Redirection to another qml page from qml page

Hi All,

 

i have main.qml page in that have used TabbedPane. Onclick of tabs am displaying some listview and some images design. 

Onclick of the container i want to redirect to another qml page called sample.qml

I am using below code for redirection

 

onTouch: {
navPane.push(design.createObject());
}
attachedObjects: [
ComponentDefinition {
id: design
source: "sample.qml"
}
]

 

But its not working. Please can any one help on this

 

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Redirection to another qml page from qml page

[ Edited ]

Are you getting any errors or warnings in your console window?

 

Please use the 'Insert Code' button when including code in your posting, this is the clipboard icon with a 'C' in it. This way your code will be easier to read and likely to get a better response.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Redirection to another qml page from qml page

Also I would avoid the use of onTouch for situations like this as it can be called multiple times at multiple phases (thus inadvertantly pushing multiple instances of a page on the navigation stack), instead use a handler such as Tap...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__taphandler.html


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
New Developer
vnlakshmi39
Posts: 46
Registered: ‎12-16-2013
My Device: 9780 Bold
My Carrier: Airtel

Re: Redirection to another qml page from qml page

Thanks for your reply. I will use and let you know

Please use plain text.