I am new to flex. I am working with arraycollection (as a
dataprovider) to populate a list control with the dynamically
generated XML ( generated as a result of query to a mysql database
using PHP). The list control is getting populated if the generated
XML contains more than one node (say 2,3...), but it is failing to
get populated if the returned XML contains only one child node.
Please help me out.
<?xml version="1.0" encoding="utf-8"?>
public var userStoresList:ArrayCollection = new
public function getuserStoresList(event:ResultEvent):void
userStoresList = event.result.allUnits.unit;
<mx:HTTPService id="gridhttp" url="xmlone.xml"
gregtan, i am having the same issue. It seems that if you get
one record, putting in an arraycollection doesn't work. I wonder if
Flex is reading that data as something else so that it cannot be
assigned to the collection. I have seen this issue elsewhere on the
web but have not found a solution yet, have you?