Karl: The problem I'm having isn't with selecting the items per se. It's with sending the data to the middle tier. The value of each item is an integer, but when I try to send the values to the middle tier, the Java code interprets the array (or comma-separated list) as a single string and breaks.
Here's the list control: <mx:List id="lsSelected" dataProvider="{selectedServiceList}" labelField="@name" allowMultipleSelection="true" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" /> Here's the relevant ActionScript: private function saveChanges():void { var arr:Array = []; var params:Object = new Object; for(var i:String in selectedServiceList){ var obj:Object = selectedServiceList.getItemAt(int(i)); arr.push([EMAIL PROTECTED]); } params.save="true"; params.selectedProxiedServiceIds = arr; proxiedServiceUpdate.method="POST"; proxiedServiceUpdate.send(params); } Can you see where I'm going wrong? Jim --- In flexcoders@yahoogroups.com, "Karl Johnson" <[EMAIL PROTECTED]> wrote: > > Could you clarify your specific solution a little more? > > If I understand the original question correctly, it sounds like you have > two ways of handling this. One - add each item to a stored array object > when the drop event is fired on your second list. Two - You could also > just loop through the dataprovider, or just grab the dataprovider as an > array of the second list. > > Does that answer anything? Please provide more details and I am sure we > can resolve your problem. > > Karl > > Karl Johnson > Cynergy Systems, Inc. > http://www.CynergySystems.com > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of dadrobson > Sent: Tuesday, July 18, 2006 7:56 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Need help to select multiple item from a list > > > > Sukhminder: > > Did you ever get an answer to this question? I've been searching the > docs and the Flexcoders posts, but so far, no luck. > > Jim > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Sukhminder Singh" > <sukhminder.singh@> wrote: > > > > Hi there... > > > > I have 2 lists. First list contains all the items, from which a user > can > > drag and drop items into his selected list. Then I want to capture > all the > > items a user has in his selected list. > > > > Anyone out there knows how to get all the items IDs from the second > list > > which will be later stored in DB.?? My list if like follows: > > > > <mx:FormItem width="100%" label="User Catalogs"> > > <cfComponents:BindableList > > id="eSuser_CatalogIDs" > > valueField="catalogID" > > labelFields="[CatalogName]" > > dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" > > width="100%" > > /> > > </mx:FormItem> > > > > Thanks > > Sukhminder > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/