This content has been marked as final. Show 8 replies
Do you want to send only the selectedItem(s)?
Nope all the list elements in that exact order.
I would just send the List's dataprovider (xml?) via the HTTPService, since it is the source for the List.
Hmm... that would not reflect the changes for the position of the elements in the List.
The draging attributies are all set to true. User can drag and drop within the same list elements, what is important is the order he put them in.
Ah! Always throwing a curve, aren't we?
Well, luckily for you and me, the Dataprovider order also changes to match the List's order after a drag and drop operation. The order matches exactly.
That's great news... so the dataProvider preserves order of elemets... :)
Now... how do I get that into a params:Object to pass on as HTTPService?
Not sure as I'd have to test it. But look into the HTTPService's send(). method. It can take either an Object of name/value pairs or an XML object (depending on the contentType property).
You'll probably loop through the dataProvider and assign the name/value pairs to an Object, then call your HTTPService.send() method with the Object. On the server side, your PHP code will loop through the Object and assign the name/values to your database.
Thank you yet again, rtalton!
It worked just like you said!