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

Posts: 12
Registered: ‎11-10-2012
My Device: alpha dev
My Carrier: 21622042601

Pass a variable in the constructor


how can i pass the value of a variable from one page to another ???

Please use plain text.
Posts: 1,474
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Pass a variable in the constructor

define a property for the target Page

then set the Property myPage.myProperty = 42

and in target Page watch Property changes

defining a Property by magic gives you a onPropertyChange like onMyPropertyChanged {}

ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.