The data for each item in the nested repeater must be nested in the
dataProvider for the main repeater.  You pass the appropriate part of
the main dataProvider to the nested repeater using currentItem.

 

Of course, you will need to use an AsyncToken when you call the answer
RO, so that in its resultHandler you can associate the correct data with
the correct item at the main repeater level.  I'd use XML for this.

 

Also, it would be better to build this data on the server, and pass the
whole datqaProovider at once.  If that is an option.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of bulldog65mustang
Sent: Friday, January 26, 2007 1:20 PM
To: [email protected]
Subject: [flexcoders] Nested Repeater problem

 

I have a situation where I need to call a RemoteObject that returns a 
set of questions. I set the dataProvider of my Repeater to this 
ArrayCollection. The Result Handler of this RO loops through the 
ArrayCollection and calls another RO to retreive the answers( may have 
multiple answers per question). the problem I have is that each 
answer for the questions retreived are the answer of only the last 
question. I know why this is occuring, I have the same dataProvider 
being used for the inner Repeater. 

My question is how can I fix this. I have tried to insert the answer 
results from each question into an Array, but I cannot get the 
Repeater to work when I try this.

 

Reply via email to