Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Setting a variable in dataProxy on click of a button inside a component  (Read 4824 times)
Vishwas
Jr. Member
**
Posts: 12


View Profile Email
« on: November 15, 2011, 06:45:13 »

hi!
I want to set a variable inside dataProxy, on click of a button present inside instance of view component. So that i may use the value of that variable from StageMediator.
I don't know, how to access dataProxy from the instance of component, so that i can change variable's value inside it on click of button inside view component

Thanks
V.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: November 15, 2011, 08:46:35 »

The View Component should never access a Proxy. Instead, dispatch an event heard by a mediator who sets the data on the proxy.

-=Cliff>
Logged
Pages: [1]
Print