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
Contributor
Posts: 12
Registered: ‎11-10-2012
My Device: alpha dev
My Carrier: 21622042601

Pass a variable in the constructor

Hello,

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

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
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
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner