Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
dzlmbq #1
Populating a <mx:List> with XML
I am trying to do a simple list population with a series of names from a local
XML file. I'm looking for direction regarding how to pull my element and
populate the list. Here is the XML and code:
<Customers>
<Customer>
<Name>Stephanie Smith</Name>
<Phone>(555)296 3505</Phone>
</Customer>
<Customer>
<Name>Jacquelyn Smith</Name>
<Phone>(555)969 3016</Phone>
</Customer>
</Customers>
The mxml:
<mx:Model id="iaList" source="statedata.xml"/>
<mx:List id="list"
dataProvider="{mx.utils.ArrayUtil.toArray(iaList.C ustomer).Name}" width="130"
height="100%" multipleSelection="true" />
When the List code is compiled it tells me there is no property 'Name'. I want
to pull Name from the XML and populate my list. Any ideas?
dzlmbq Guest
-
Error populating list
Hi! I have a document with two listboxes, one called "lista_firenze" and the other called "lista_toscana". The "lista_toscana" has no problem, the... -
Populating an array with a list of values
I have performed a cfhttp request, the results of which are in a variable called FoundString. Found String consists of a list of website links, I... -
Populating three list boxes from the database
Can anybody help? I need to have three list boxes automatically populating each other, (ie when region is selected from the first listbox, it will... -
Dynamical populating a list that can be used as drop down list
Hi, I have a solution in which a person can be a member of one or more groups. In this case the groups are those used in the protection schema of... -
List box not populating fully.
Hi all, I have encountered a very strange problem on one of my list boxes. When I open the form it is on, the listbox populates correctly based... -
Beau Scott #2
Re: Populating a <mx:List> with XML
<mx:List id="list" dataProvider="{mx.utils.ArrayUtil.toArray(iaList.C ustomer)}" width="130" height="100%" multipleSelection="true" labelField="Name" />
Beau Scott Guest
-
Preeti #3
Re: Populating a <mx:List> with XML
Thanks a lot. This code really helped me a lot.
Preeti Guest



Reply With Quote

