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
Highlighted
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A
Accepted Solution

A little help please .

Hello guys am a new to BB10 Cascades i'm trying to learn, how i can navigate or goto to a Page or QML file OnClick Button .

 

Thanks in advanance.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: A little help please .

Hi,

Create a new BlackBerry project in Momentics IDE using Navigation Pane template. It shows how to navigate between pages.

 

More info is available here, I suggest browsing all these pages:

https://developer.blackberry.com/cascades/documentation/getting_started/index.html

 

Also there are many examples on github covering most of the platform's functionality:

https://github.com/blackberry/Cascades-Samples

Take a look at "cascadescookbookqml" example here, it's a nice demo of UI components.

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: A little help please .

Thanks for your reply.

 

I have tryed the NavigationPane,i'm developing a login screen with login button to go to home screen and and there is no need to go back to login screen ,so i think NavigationPane wont work ,i wish doing this with Button.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: A little help please .

You could display a Login page in a Sheet in onCreationComplete handler of main QML. Disable Sheet's peek feature and dismiss the sheet when user logs in successfully, so that the main page is shown.

 

There are many threads on forum discussing other approaches (replacing a scene etc) which would also work, but I think this is the easiest one.

 

Some sample code:

http://supportforums.blackberry.com/t5/Cascades-Development/Registration-Screen-Handling/m-p/1958219...

and

http://supportforums.blackberry.com/t5/Cascades-Development/Registration-Screen-Handling/m-p/1899939...

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: A little help please .

Thanks for your help Smiley Happy