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"/>