I think you have the right idea, but the wrong objects.
RIA Consultant
Adobe Certified Flex 2 Instructor
e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher
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
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.