Could you combine the data so that a single dataProvider has the data
for both categories and Items?  Then you could use a nested repeater to
show the items for each category.

If you can't combine them on the server side, can you get an items
dataProvider that has all the items with keys to the categories data?
Then you could combine them on the client.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rajesh Jayabalan
Sent: Tuesday, July 12, 2005 6:33 PM
To: [email protected]
Subject: [flexcoders] Re: Repeater with HTTPService-- found problem no
solution

Hi,

 I think the problem is data binding.

 The dataobject of thumbnailview tag is binded to the result of the
httpservice, so whenever the result changes the thumbnails change too.. 

 How can I unbind it.. or what is the workaround to this problem.

Regards
Rajesh J

--- In [email protected], "Rajesh Jayabalan" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
>  I have a repeater which for each category will try to get Items for
> the categores.. 
> 
> 
> <mx:Repeater id="rp"
> dataProvider="{getMRC.result.mrcategories.mrcategory}" >
> <mx:VBox label="{rp.currentItem.mrcName}" width="100%" height="100%"
> initialize="getItems(event.target.getRepeaterItem().mrcid)">
>       <ThumbnailView id="thumbView" label="Product Catalog"
> dataObject="{getCatItems.result.catalog.product}"
>               change="selectedItem=event.target.selectedItem" />
> </mx:VBox>
> </mx:Repeater>
> 
> but I get to see only the last list of items i.e., if there are 5
> categories then I can see only items which belong to the 5th category.
> 
> my getItems method
> function getItems(catid:Object)
>  {
>       param=String(catid);
>       //Alert.show(param);
>       getCatItems.send();
>  }
> 
> my httpservice
> 
> <mx:HTTPService id="getCatItems" url="getCategoriesItem.jsp"
> showBusyCursor="true">
>       <mx:request>
>         <catId>{param}</catId>
>       </mx:request>
> </mx:HTTPService>
> 
> How do I make it so that the dataObject for the ThnumbNailView will
> contain only the products that belong to that specific category.
> 
> Regards
> Rajesh J




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to