"I'd bind both sets of elements to the same data providers and that
should keep them synchronous without any extra work on your part."

 

Could somebody expand on the specifics on how one could do this?

 

I have an main Array Collection that contains 28, 35 or 42 elements.  In
my default view, I use this as a data provider for a repeater control to
create a serious of boxes displaying the data of each element.  Each
main element also contains a property that is an array collection.  This
array is used in a sub-repeater to vertically display each element
inside the parent box.  When a user clicks on any of these sub-element
boxes I am switching to a detail view based on a HDividedBox.  On the
right I want to display details related to the element clicked on by the
user, on the left I want to display the element in the parent array
including all the elements of the sub array collection. 

 

The vice-a-versa come since users will be able to change which element
and sub-element they are seeing view as well as completely change the
main data collection with a calendar control within the details view.

 

 


Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

--- Begin Message ---
I'd bind both sets of elements to the same dataproviders and that should keep 
them synchronous without any extra work on your part.

 

Databinding via dataproviders has, for me anyhow, been really a good thing.   
Use it.  It's not like the bad-old VB 1.0 days when it had promise but was 
totally frustrating.  IT seems to work in Flex.

 

1.      Design visuals.
2.      Make objects that contain the data you want to display
3.      Bind the objects to the visuals via dataproviders
4.      Write some code to fill out the object and the UI will work.

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ian 
Skinner
Sent: Wednesday, May 02, 2007 11:15 AM
To: [EMAIL PROTECTED]; [email protected]
Subject: [flexcoders] Synchronizing data between viewStack elements

 

When a user clicks on a container built with repeated array collection 
elements in one viewStack layer, the selected element needs to be 
utilized to populate the data in a second viewStack layer and 
vice-a-versa.

Conceptually how does one do this? Do I set some type of global 
variable|pointer or pass the objects from one view to the other somehow 
or can one view layer be aware of another's data?

I suspect this is not a detailed enough description, please feel free to 
ask questions to help me describe the specifics.


 

--- End Message ---

Reply via email to