alinakazi opened a new issue #1181: URL: https://github.com/apache/royale-asjs/issues/1181
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.apache.org/royale/mx" width="600" height="400" creationComplete="initView()"> <!-- to do: layout="absolute" minWidth="955" minHeight="600" --> <fx:Style> @namespace mx "library://ns.apache.org/royale/mx"; /* set position:absolute to make the (x,y) properties work */ mx|Label { position: absolute; } </fx:Style> <fx:Script> <![CDATA[ import mx.collections.XMLListCollection; import org.apache.royale.collections.ArrayList; var xmldata:String = "<NewDataSet><Table><PracticeID>207</PracticeID><PracticeCode>175</PracticeCode><PracticeNm>CHOICE PHYSICAL THERAPY & REHAB PC</PracticeNm><AppUserID>729</AppUserID></Table><Table><PracticeID>203</PracticeID><PracticeCode>171</PracticeCode><PracticeNm>CJ PHYSIOTHERAPY INC.</PracticeNm><AppUserID>718</AppUserID></Table></NewDataSet>"; public function initView():void { //xmldata = xmldata.replace("<NewDataSet>",""); //xmldata = xmldata.replace("</NewDataSet>",""); //cb.dataProvider = xmldata; var xml1:XML = new XML(xmldata); // var xmllist1:XMLList = new XMLList(xml1.children()); //cb.dataProvider = new XMLList(xml1);// new XMLList(xml1.children()); //cb.dataProvider = new XMLList(xml1.children()); cb.dataProvider = new XMLListCollection(xml1.children()); } ]]> </fx:Script> <mx:ComboBox id="cb" x="20" y="20" labelField="PracticeNm" width="300" height="30" minHeight="30"/> </mx:Application> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
