"...I put the post on the list , and within little time i just figured out..." No problem, that happens to all of us!
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Tuesday, November 25, 2008 5:41 PM To: [email protected] Subject: Re: [flexcoders] How to send data as XML (data is loaded through HTTP in List Box) Hi Tracy I agree, I just fixed this problem 5 minutes ago. Actually problem was I stores everything in XML List but I was passing an array containing label as the data Provider which was just for the visual perspective, so for sending data I need to grab the XML List's nodes associated with the particular entry of the array and i did that. So Now my problem is solved. I apologize for the inconvenience. Sometimes it happened with me that the moment I put the post on the list , and within little time i just figured out. Please do not mind that. Thanks a lot for your help. Anuj On Tue, Nov 25, 2008 at 2:09 PM, Tracy Spratt <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: "...it is dropping just the label...." I doubt that that is correct. Why do you think it is so? What is the dataProvider type for both lists? The built-in d/d functionality expects the same types in source and target and copies or moves entire items. The second list is expecting the same type of item as the first. We need more code/detail. Tracy ________________________________ From: [email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]> ] On Behalf Of anuj181 Sent: Tuesday, November 25, 2008 4:44 PM To: [email protected] <mailto:[email protected]> Subject: [flexcoders] How to send data as XML (data is loaded through HTTP in List Box) Hi All I use HTTP service to load data in List Box. I pasted code below, Now I need to allow drag and drop operation which I am successfully able to do that. However once items are dropped in second list , I need to wrap up the data as XML and send it to server , I guess i will use 'POST' method for that. Now root of my problem is when I am dragging and dropping items from one list to another, it is dropping just the label of the entries in form of string(XML List) but not the full XML node. From visual perspective it looks fine but what I need is to send data as an XML simply as simply sending the string would not process the necessary update to the database. Can anybody help me in getting hold of data in my list as XML but not as simple strings. Any help will be appreciated. Thanks Anuj /***************My Code********************/ <mx:HTTPService id="devicesXML" method="GET" resultFormat="e4x" result="devicesXMLHandler(event)" showBusyCursor="true"> </mx:HTTPService> private function devicesXMLHandler(event:ResultEvent):void { devicesList = event.result.device; devicesCollection = new XMLListCollection(devicesList); nvrsInPoolList.dataProvider = devicesInList; } <mx:List id="nvrsInPoolList" change="selectionChangehandler(event)" allowMultipleSelection="true" dragMoveEnabled="true" dragEnabled="true" dropEnabled="true" y="105" x="17" height="462" width="294"/>

