I noticed that you named your dataProvider myHomePageAC indicating that you are using an ArrayCollection. The E4X notation is used only on XML objects. You can then put the XML into an XMLListCollection to use it as a dataProvider.

I think you have the right idea, but the wrong objects.


Rob Rusher

 

RIA Consultant

Adobe Certified Flex 2 Instructor

e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher

blog:http://www.robrusher.com


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of mepaninaresh
Sent: Tuesday, June 06, 2006 5:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Repeater XML Attribute

 

Hi, I am trying to retrieve a certain XML node using the attribute value, tried various syntax. Just can't get it to work. Sample code below.

Any ideas?

Thanks for any help.

<Amount Type="Number_of_Records" Units="1" Format="Actual">256</Amount>
<Amount Type="Number_of_Critical_Changes" Units="1" Format="Actual">10</Amount>
<Amount Type="High_Risk" Units="1" Format="Percentage">55</Amount>

<mx:Repeater id="list" dataProvider="{myHomePageAC}">
  <mx:GridRow width="778" paddingLeft="4">
    <mx:GridItem>
       <mx:LinkButton label="{list.currentItem.Amount[0]}" textAlign="center" />               
     </mx:GridItem>
     <mx:GridItem>
       <mx:LinkButton label="{list.currentItem.Amount[Type=='High_Risk']}" textAlign="center" />               
     </mx:GridItem>
    </mx:GridRow>          
</mx:Repeater>

__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to