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