Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

connecting XML data to a component

I'm having difficulty binding data generated using the XML object to the List Component. If I use the XML Connector component I don't have any problems binding the data but then I have problems accessing the XML via actionscript. Cany anybody provide me with the correct syntax for binding dynamic data to a component when the dynamic data isn't originating from one of the data components?

thanks,
brian fidler
0
befidled
Asked:
befidled
1 Solution
 
hsmtpCommented:
Hi befidled,

This will help you:

myDP = new Array();
list.dataProvider = myDP; // providing data to list component from array

for (var i=0; i<20; i++) {
  myDP.addItem({label: "string" + i, data: i});
}
0
 
befidledAuthor Commented:
Perfect. Thanks a bunch.

brian
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now