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

Web and WebWorks Development

Reply
Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780
Accepted Solution

Send variable value from page to another page

In my case :
I have created a form and in the form there is a button and a combo box that contains the data (Say it page A). When I click on the button, all I wanted was to call page B to perform a second process. The syntax for calling the page B is :

 

bb.pushScreen('PageB.htm', 'PageB', {'Key': MyComboValue});

How do I after page after page B called B will capture and get the value of the "MyComboValue" being sent from page A ??

Regards,
Bertho
BlackBerry Development Advisor
Posts: 626
Registered: ‎10-01-2009
My Device: Z10

Re: Send variable value from page to another page

Hello,

 

Firstly,  this is available in bbUI 0.94 (next branch) just to make sure you're running the right build.

 

Now, the object you pass to the new page is available in the ondomready, and onscreenready functions, so you would do something like this:

 

onscreenready: function(element, id, passed_object) {
  
},

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780

Re: Send variable value from page to another page

Yes....

My case is solved and working...:Clap:

Regards,
Bertho