PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: Vishwas on November 15, 2011, 06:45:13



Title: Setting a variable in dataProxy on click of a button inside a component
Post by: Vishwas 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.


Title: Re: Setting a variable in dataProxy on click of a button inside a component
Post by: puremvc 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>