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 flexcoders@yahoogroups.com, "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

<*> 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