PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: reduxdj on March 19, 2008, 04:49:10



Title: CrossPopulating Proxies
Post by: reduxdj on March 19, 2008, 04:49:10
Another newbie question, I have a proxy and it gets back a dataset.  How do I keep this dataset around so I can make another command do some business logic on my data, so my other view can use it?  What's the best practice for this?

See, what a beginner question, I am so embarrassed.

 :-\

Thanks,
patrick


Title: Re: CrossPopulating Proxies
Post by: immerzeel on March 19, 2008, 05:37:09
In short: you save the dataset in a variable of the proxy class. In the command you facade.retrieveProxy() the proxy to manipulate the data.

Download the Best Practices PDF.

http://puremvc.org/component/option,com_wrapper/Itemid,30/

It is explained better an more clearly than I could tell you..

Cheers,

Pascal


Title: Re: CrossPopulating Proxies
Post by: reduxdj on March 19, 2008, 09:12:43
Oh yeah, I read that twice.  It's a lot of jargon to digest in one or two sittings.  I am starting to get the hang of it. 

Job well done on this.

Patrick