You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2022/03/11 20:53:41 UTC

[GitHub] [royale-asjs] alinakazi opened a new issue #1181: MX Combobox doesn't Work with XML data

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 &amp; 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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw closed issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
yishayw closed issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181


   


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181#issuecomment-1070784350


   I'm not sure there's a way around that. See the last few paragraphs of this guide
   
   https://apache.github.io/royale-docs/migrate-an-existing-app/migrate-from-flex


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] pashminakazi edited a comment on issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
pashminakazi edited a comment on issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181#issuecomment-1069092792


   Hi @yishayw
   Can u make a change to make comboBox work proper without any change 
   we are using comboBox in our application as
   
   
   ```
   <mx:ComboBox id="cboStatus" width="120" height="22" dataProvider="{DS_cboStatus.Table}" labelField="EmailDocStatusNm">
   
   [Bindable]
   private var DS_cboStatus:Object = new Object();
   
   DS_cboStatus = event.result;
   ```
   event.result is having an XML type data
   
   It was not working before your change and not after your change we have to make some changes to make it work but as we have 1000 of combobox in our application so we don't want to make change.
   
   It works with this change
   ```
   [Bindable]
   private var DS_cboStatus:XML = new XML();
   
   DS_cboStatus = new XML(event.result);
   ```
   
   Please make it work as it is if there is small change required in SDK and do not charge for it.


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] pashminakazi edited a comment on issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
pashminakazi edited a comment on issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181#issuecomment-1069092792


   Hi @yishayw
   Can u make a change to make comboBox work proper without any change 
   we are using comboBox in our application as
   
   
   ```
   <mx:ComboBox id="cboStatus" width="120" height="22" dataProvider="{DS_cboStatus.Table}" labelField="EmailDocStatusNm">
   
   [Bindable]
   private var DS_cboStatus:Object = new Object();
   
   DS_cboStatus = event.result;
   ```
   event.result is having an XML type data
   
   It was not working before your change and not after your change we have to make some changes to make it work but as we have 1000 of combobox in our application so we don't want to make change.
   
   It works with this change
   ```
   [Bindable]
   private var DS_cboStatus:XML = new XML();
   
   DS_cboStatus = new XML(event.result);
   ```
   
   Please make it work as it is if there is small change required in SDK


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] alinakazi closed issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
alinakazi closed issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181


   


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] pashminakazi commented on issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181#issuecomment-1069092792


   Hi Yishay,
   Can u make a change to make comboBox work proper without any change 
   we are using comboBox in our application as
   
   
   ```
   <mx:ComboBox id="cboStatus" width="120" height="22" dataProvider="{DS_cboStatus.Table}" labelField="EmailDocStatusNm">
   
   [Bindable]
   private var DS_cboStatus:Object = new Object();
   
   DS_cboStatus = event.result;
   ```
   event.result is having an XML type data
   
   It was not working before your change and not after your change we have to make some changes to make it work but as we have 1000 of combobox in our application so we don't want to make change.
   
   It works with this change
   ```
   [Bindable]
   private var DS_cboStatus:XML = new XML();
   
   DS_cboStatus = new XML(event.result);
   ```
   
   Please make it work as it is if there is small change required in SDK and do not charge for it.


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] alinakazi commented on issue #1181: MX Combobox doesn't Work with XML data

Posted by GitBox <gi...@apache.org>.
alinakazi commented on issue #1181:
URL: https://github.com/apache/royale-asjs/issues/1181#issuecomment-1069235430


   Object type data is handled within the application source code 


-- 
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: issues-unsubscribe@royale.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org