Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-08-03 Thread Angelo Anolin
Hi Tracy, apologies that it took me quite a while to reply and continue this. been sidetracked on another project. anyway, when I have passed the xmllistcollection as string to .net, what method would i use to parse the information in the .net side? thanks. regards, Angelo

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Angelo Anolin
Hi Sam Lai, THanks for the input and my apologies for replying late since I felt the need to get deeper on the issue I am encountering. In my web service, the arraycollection is received as an array list and yes, it is like an array of xml nodes. In my arraycollection, say I have 5 columns

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Angelo Anolin
Hi Tracy, I would certainly appreciate if you could point me in the right direction on using XMLListCollection and sending it back to .NET as a string.  Thanks. Regards, Angelo From: Tracy Spratt tr...@nts3rd.com To: flexcoders@yahoogroups.com Sent:

RE: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-07 Thread Tracy Spratt
var sXML:String = root; sXML += myXMLListCollection.toXMLSTring(); sXML+= /root; myWebService.setUserPermits(sXML,sSID); on the .net side: WebMethod(Description:=Updates multiple UserPermit records) _ Public Function setUserPermits(ByVal sRowsXml As String, ByVal sSId As String) As

RE: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-06 Thread Tracy Spratt
Why not use XMLListCollection and send the xml to .net as a string? There is little value in building an ArrayCollection of generic obects. You can sort/filter an XMLListCollection. XML is more verbose than some other methods, but if bandwidth is truly an issue, then you should be looking at

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-03 Thread Angelo Anolin
Hi Sam, Basically this is the process which I am using. .NET Retrieve records from Oracle DB and store the same into a dataset.  Return the dataset as XML string via the command DataSet.GetXML. Flex In the event handler of my webservice method call, I parse the string into XML, then

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-03 Thread Sam Lai
I just wrote up a simple C# web service that accepts an ArrayList: [WebMethod] public bool ArrayListTest(System.Collections.ArrayList a) { ... } Then in Flex I wrote this, mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Sam Lai
How is it being parsed in .NET? You can parse it into a hashtable, or better yet, use a pre-defined object. Not sure why the order is different, but it is probably fragile to rely on the order in this case. 2009/7/2 Angelo Anolin angelo_ano...@yahoo.com: Hi FlexCoders, I have an array

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Angelo Anolin
Hi Sam, Care to show some examples? I am parsing the arrayCollection into an ArrayList on .NET.  This is particularly not too appealing since I just discovered that for example, if one of the objects in the arraycollection would have an empty string value, the number of items inside the array

Re: [flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-02 Thread Sam Lai
Instead of using an array list and trying to emulate the type-less abilities of AS3, I'd try to map the XML to typed objects in .NET. Or does the XML from your Flex app differ too wildly to do this? Are you using the XmlSerializer to deserialize this? Or are you using WCF? Or are you doing it

[flexcoders] ArrayCollection Does Not Show Items In Order When Passed to .NET WebService

2009-07-01 Thread Angelo Anolin
Hi FlexCoders, I have an array collection which I am populating as follows: var oTemp:Object; var xl:XMLList = _xmlData.children(); var i:int; for(i = 0; i xl.length(); i++)  {  oTemp = {ID_TAG:xl[i].ID.text(), CAT_TAG:xl[i].CAT.text(), DET_TAG:xl[i].DET.text(),