Data Transfer between Viewstacks

View: New views
2 Messages — Rating Filter:   Alert me  

Data Transfer between Viewstacks

by Dan Pride :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am building an app that includes datagrids where when double clicking a record causes the ViewStack to change to a new view to present the data in a form for editing/creating.

What is the best way to transfer data between two different view states? Bindable public variables? Where you dump the record field data into public bindable vars then load it into text squares in the new viewstate???

Is there a standard way to do this? Value Objects?

Thanks
Dan


     

Re: Data Transfer between Viewstacks

by Tracy Spratt-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Use a central data model.  Some folks use a singleton for this.  Use binding, or events, or ChangeWatcher to update your UI pieces as needed.

Tracy

--- In flexcoders@..., Dan Pride <danielpride@...> wrote:

>
> I am building an app that includes datagrids where when double clicking a record causes the ViewStack to change to a new view to present the data in a form for editing/creating.
>
> What is the best way to transfer data between two different view states? Bindable public variables? Where you dump the record field data into public bindable vars then load it into text squares in the new viewstate???
>
> Is there a standard way to do this? Value Objects?
>
> Thanks
> Dan
>