Re: [flexcoders] Re: handle large data sets from SOAP service
Thanks for the respond. That's what we plan to do here. Can you or someone show me a code sample of paging? Thanks, Michelle. From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 4, 2008 10:18:50 AM Subject: RE: [flexcoders] Re: handle large data sets from SOAP service If you do not control the Web service itself, then you will probably need to get the data server-side and implement your own paging. Tracy From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Michelle Davis Sent: Thursday, December 04, 2008 10:53 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: handle large data sets from SOAP service Hi Steve, Thanks for reading my email. The problems I'm having are how to get million of records from web service thru SOAP and display those records thru pagination. Currently I’m using ArrayCollection to store the data after receive from the server thru SOAP service and using DataGrid to display. When the data contains 5000+ records it chokes up. Thanks, Michelle. From:valdhor valdhorlists@ embarqmail. com To: [EMAIL PROTECTED] ups.com Sent: Thursday, December 4, 2008 6:28:34 AM Subject: [flexcoders] Re: handle large data sets from SOAP service I don't know about everybody else, but I could do with some more details. Are you having problems getting the data, displaying it or something else? What do you mean by handle? If you could expand on what you are trying to do we may be able to point you in the right direction. Steve --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] . wrote: Hi all, Can someone show me sample on how to handle large data sets from SOAP service? I'm desperate for helps. Thanks, Michelle.
[flexcoders] handle large data sets from SOAP service
Hi all, Can someone show me sample on how to handle large data sets from SOAP service? I'm desperate for helps. Thanks, Michelle.
Re: [flexcoders] Re: handle large data sets from SOAP service
Hi Steve, Thanks for reading my email. The problems I'm having are how to get million of records from web service thru SOAP and display those records thru pagination. Currently I’m using ArrayCollection to store the data after receive from the server thru SOAP service and using DataGrid to display. When the data contains 5000+ records it chokes up. Thanks, Michelle. From: valdhor [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 4, 2008 6:28:34 AM Subject: [flexcoders] Re: handle large data sets from SOAP service I don't know about everybody else, but I could do with some more details. Are you having problems getting the data, displaying it or something else? What do you mean by handle? If you could expand on what you are trying to do we may be able to point you in the right direction. Steve --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] . wrote: Hi all, Can someone show me sample on how to handle large data sets from SOAP service? I'm desperate for helps.. Thanks, Michelle.
Re: [flexcoders] Re: datagridcolumn
Hi Tim, Thanks so much for the answer. You are my savior. I got it now. At the beginning I tried getNumberAt but it didn't work so that's why I tried others. privatefunctiongetLabelUnit2(item:Object, column:DataGridColumn): Number{ return }item.CaServiceIds.getNumberAt(1) Have a nice day, Michelle. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 12, 2008 8:17:39 PM Subject: [flexcoders] Re: datagridcolumn Hi Michelle, You're on the right track with the labelFunction. Give this a try: privatefunctiongetLabelUnit1( item:Object, column:DataGridColu mn) : Number { returnitem.CaServiceIds. getItemAt( 0); } privatefunctiongetLabelUnit2( item:Object, column:DataGridColu mn) : Number { returnitem.CaServiceIds. getItemAt( 1); } mx:columns mx:DataGridColumn headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true/ /mx:columns -TH --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hello, I have the following issue and I don't know what to do. My DatagGrid dataProvider is ArrayCollection contains the following information _1363246720dgCaAsso ciation = mx.controls. DataGrid (@34090a1) mx.controls. dataGridClasses. DataGridBase [inherited] = columnCount = 3 : Number columns = Array (@317af59) dataProvider = webservices. caconfigurator. CaAssociationArr ay (@3413601) mx.collections. ArrayCollection [inherited] = [0] = webservices. caconfigurator. CaAssociation (@33f3e51) CaServiceIds = webservices. caconfigurator. CaServiceIdArray (@3413501) mx.collections. ArrayCollection [inherited] = [0] = 242 [0xf2] : Number [1] = 243 [0xf3] : Number ContentName = cu2 : String Id = 1 : Number RadioStationName = knx : String I called DataGridColumn to display ContentName on the first column, CaServiceIds[ 0] on the second column and CaServiceIds[ 1]on the third column. But not successful. Please help I tried the following: 1) I used dataField in all 3 DataGridColumn. The first column displayed cu2, second column display 242,243 and third column display 242,243 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 dataField=CaServic eIds width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 dataField=CaServic eIds width=63 wordWrap=true / /mx:columns 2) I used labelFunction to display CaServiceIds[ 0] and CaServiceIds[ 1]. I got an error Main Thread (Suspended: Error: Unknown Property: 'null'.) mx.collections: :ListCollectionV iew/http: //www.adobe. com/2006/ actionscript/ flash/proxy: :getProperty view::RadioStations /getLabelUnit1 mx.controls. dataGridClasses: :DataGridColumn/ itemToLabel mx.controls. dataGridClasses: :DataGridBase/ makeListData mx.controls: :DataGrid/ http://www. adobe.com/ 2006/flex/ mx/internal: :setupRendererFr omData mx.controls: :DataGrid/ commitProperties mx.core::UIComponen t/validateProper ties mx.managers: :LayoutManager/ validateProperti es mx.managers: :LayoutManager/ doPhasedInstanti ation Function/http: //adobe.com/ AS3/2006/ builtin:: apply [no source] mx.core::UIComponen t/callLaterDispa tcher2 mx.core::UIComponen t/callLaterDispa tcher }privatefunctiondis playSellableUnit (ids:CaServiceId Array, index:Number) :Number{returnid s.getNumberAt( index)privatefun ctiongetLabelUni t1(item:Object, column:DataGridColu mn): Number{sellableUnit 1 = displaySellableUnit (item.CaServiceI ds[column. dataField] ,0)varsellableUn it1:Number} returnsellableUn it1 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true / /mx:columns Thanks so much, Michelle - beginner on Flex builder 3
Re: [flexcoders] Re: datagridcolumn
Hi Tim, Can I ask you another stupid question? I learned labelFunction from the web site, I don't understand the second parameter column:DataGridColumn. What is that for? Thanks, Michelle. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 12, 2008 8:17:39 PM Subject: [flexcoders] Re: datagridcolumn Hi Michelle, You're on the right track with the labelFunction. Give this a try: privatefunctiongetLabelUnit1( item:Object, column:DataGridColu mn) : Number { returnitem..CaServiceIds. getItemAt( 0); } privatefunctiongetLabelUnit2( item:Object, column:DataGridColu mn) : Number { returnitem.CaServiceIds. getItemAt( 1); } mx:columns mx:DataGridColumn headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true/ /mx:columns -TH --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hello, I have the following issue and I don't know what to do. My DatagGrid dataProvider is ArrayCollection contains the following information _1363246720dgCaAsso ciation = mx.controls. DataGrid (@34090a1) mx.controls. dataGridClasses. DataGridBase [inherited] = columnCount = 3 : Number columns = Array (@317af59) dataProvider = webservices. caconfigurator. CaAssociationArr ay (@3413601) mx.collections. ArrayCollection [inherited] = [0] = webservices. caconfigurator. CaAssociation (@33f3e51) CaServiceIds = webservices. caconfigurator. CaServiceIdArray (@3413501) mx.collections. ArrayCollection [inherited] = [0] = 242 [0xf2] : Number [1] = 243 [0xf3] : Number ContentName = cu2 : String Id = 1 : Number RadioStationName = knx : String I called DataGridColumn to display ContentName on the first column, CaServiceIds[ 0] on the second column and CaServiceIds[ 1]on the third column. But not successful. Please help I tried the following: 1) I used dataField in all 3 DataGridColumn.. The first column displayed cu2, second column display 242,243 and third column display 242,243 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 dataField=CaServic eIds width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 dataField=CaServic eIds width=63 wordWrap=true / /mx:columns 2) I used labelFunction to display CaServiceIds[ 0] and CaServiceIds[ 1]. I got an error Main Thread (Suspended: Error: Unknown Property: 'null'.) mx.collections: :ListCollectionV iew/http: //www.adobe. com/2006/ actionscript/ flash/proxy: :getProperty view::RadioStations /getLabelUnit1 mx.controls. dataGridClasses: :DataGridColumn/ itemToLabel mx.controls. dataGridClasses: :DataGridBase/ makeListData mx.controls: :DataGrid/ http://www. adobe.com/ 2006/flex/ mx/internal: :setupRendererFr omData mx.controls: :DataGrid/ commitProperties mx.core::UIComponen t/validateProper ties mx.managers: :LayoutManager/ validateProperti es mx.managers: :LayoutManager/ doPhasedInstanti ation Function/http: //adobe.com/ AS3/2006/ builtin:: apply [no source] mx.core::UIComponen t/callLaterDispa tcher2 mx.core::UIComponen t/callLaterDispa tcher }privatefunctiondis playSellableUnit (ids:CaServiceId Array, index:Number) :Number{returnid s.getNumberAt( index)privatefun ctiongetLabelUni t1(item:Object, column:DataGridColu mn): Number{sellableUnit 1 = displaySellableUnit (item.CaServiceI ds[column. dataField] ,0)varsellableUn it1:Number} returnsellableUn it1 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true / /mx:columns Thanks so much, Michelle - beginner on Flex builder 3
Re: [flexcoders] Re: datagridcolumn
Wows, I learned the new thing. Thanks so much, Michelle. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, August 13, 2008 8:39:20 AM Subject: [flexcoders] Re: datagridcolumn There are no stupid questions. :-) I'm glad that you got it working. The second parameter specifies the DataGrid column. This can be useful if, for instance, you are using the same labelFunction for several columns, and you need to conditionally format the returned object; depending on the column that is using the callback function. privatefunctiongetLabelUni t( item:Object, column:DataGridColu mn) : Number { if(column.headerText == Sellable Unit1) returnitem.CaServiceIds. getItemAt(0) ; if(column.headerText == Sellable Unit2) returnitem.CaServiceIds. getItemAt(1) ; }mx:columns mx:DataGridColumn -TH headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumnheaderText=Sellable Unit1 labelFunction= getLabelUnit width=63 wordWrap=true/ mx:DataGridColumnheaderText=Sellable Unit2 labelFunction= getLabelUnit width=63 wordWrap=true/ /mx:columns --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hi Tim, Can I ask you another stupid question? I learned labelFunction from the web site, I don't understand the second parameter column:DataGridColu mn. What is that for? Thanks, Michelle. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Tuesday, August 12, 2008 8:17:39 PM Subject: [flexcoders] Re: datagridcolumn Hi Michelle, You're on the right track with the labelFunction. Give this a try: privatefunctiongetL abelUnit1( item:Object, column:DataGridColu mn) : Number { returnitem.. CaServiceIds. getItemAt( 0); } privatefunctiongetL abelUnit2( item:Object, column:DataGridColu mn) : Number { returnitem.CaServic eIds. getItemAt( 1); } mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true / /mx:columns -TH --- In [EMAIL PROTECTED] ups.com, Michelle Davis mtndavis@ wrote: Hello, I have the following issue and I don't know what to do. My DatagGrid dataProvider is ArrayCollection contains the following information _1363246720dgCaAsso ciation = mx.controls. DataGrid (@34090a1) mx.controls. dataGridClasses. DataGridBase [inherited] = columnCount = 3 : Number columns = Array (@317af59) dataProvider = webservices. caconfigurator. CaAssociationArr ay (@3413601) mx.collections. ArrayCollection [inherited] = [0] = webservices. caconfigurator. CaAssociation (@33f3e51) CaServiceIds = webservices. caconfigurator. CaServiceIdArray (@3413501) mx.collections. ArrayCollection [inherited] = [0] = 242 [0xf2] : Number [1] = 243 [0xf3] : Number ContentName = cu2 : String Id = 1 : Number RadioStationName = knx : String I called DataGridColumn to display ContentName on the first column, CaServiceIds[ 0] on the second column and CaServiceIds[ 1]on the third column. But not successful. Please help I tried the following: 1) I used dataField in all 3 DataGridColumn. . The first column displayed cu2, second column display 242,243 and third column display 242,243 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 dataField=CaServic eIds width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 dataField=CaServic eIds width=63 wordWrap=true / /mx:columns 2) I used labelFunction to display CaServiceIds[ 0] and CaServiceIds[ 1]. I got an error Main Thread (Suspended: Error: Unknown Property: 'null'.) mx.collections: :ListCollectionV iew/http: //www.adobe. com/2006/ actionscript/ flash/proxy: :getProperty view::RadioStations /getLabelUnit1 mx.controls. dataGridClasses: :DataGridColumn/ itemToLabel mx.controls. dataGridClasses: :DataGridBase/ makeListData mx.controls: :DataGrid/ http://www. adobe.com/ 2006/flex/ mx/internal: :setupRendererFr omData mx.controls: :DataGrid/ commitProperties mx.core::UIComponen t/validateProper ties mx.managers: :LayoutManager/ validateProperti es mx.managers: :LayoutManager/ doPhasedInstanti ation Function/http: //adobe.com/ AS3/2006/ builtin:: apply [no source] mx.core::UIComponen t/callLaterDispa tcher2 mx.core::UIComponen t/callLaterDispa tcher }privatefunctiondis playSellableUnit (ids:CaServiceId Array, index:Number) :Number{returnid s.getNumberAt( index)privatefun ctiongetLabelUni t1(item:Object
Re: [flexcoders] Re: datagridcolumn
Hi Tim, Now I know why when I tried labelFunction and getNumberAt. It didn't work the first time. The reason is I had only 1 argument in labelFunction.privatefunctiongetLabelUnit2(item:Object): Number{ returnitem.CaServiceIds.getNumberAt(1) } I got the error ArgumentError: Error #1063: Argument count mismatch on view::RadioStations/getLabelUnit2(). Expected 1, got 2. Michelle.. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 12, 2008 8:17:39 PM Subject: [flexcoders] Re: datagridcolumn Hi Michelle, You're on the right track with the labelFunction. Give this a try: privatefunctiongetLabelUnit1( item:Object, column:DataGridColu mn) : Number { returnitem.CaServiceIds. getItemAt( 0); } privatefunctiongetLabelUnit2( item:Object, column:DataGridColu mn) : Number { returnitem.CaServiceIds. getItemAt( 1); } mx:columns mx:DataGridColumn headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true/ /mx:columns -TH --- In [EMAIL PROTECTED] ups.com, Michelle Davis [EMAIL PROTECTED] wrote: Hello, I have the following issue and I don't know what to do. My DatagGrid dataProvider is ArrayCollection contains the following information _1363246720dgCaAsso ciation = mx.controls. DataGrid (@34090a1) mx.controls. dataGridClasses. DataGridBase [inherited] = columnCount = 3 : Number columns = Array (@317af59) dataProvider = webservices. caconfigurator. CaAssociationArr ay (@3413601) mx.collections. ArrayCollection [inherited] = [0] = webservices. caconfigurator. CaAssociation (@33f3e51) CaServiceIds = webservices. caconfigurator. CaServiceIdArray (@3413501) mx.collections. ArrayCollection [inherited] = [0] = 242 [0xf2] : Number [1] = 243 [0xf3] : Number ContentName = cu2 : String Id = 1 : Number RadioStationName = knx : String I called DataGridColumn to display ContentName on the first column, CaServiceIds[ 0] on the second column and CaServiceIds[ 1]on the third column. But not successful. Please help I tried the following: 1) I used dataField in all 3 DataGridColumn. The first column displayed cu2, second column display 242,243 and third column display 242,243 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 dataField=CaServic eIds width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 dataField=CaServic eIds width=63 wordWrap=true / /mx:columns 2) I used labelFunction to display CaServiceIds[ 0] and CaServiceIds[ 1]. I got an error Main Thread (Suspended: Error: Unknown Property: 'null'.) mx.collections: :ListCollectionV iew/http: //www.adobe. com/2006/ actionscript/ flash/proxy: :getProperty view::RadioStations /getLabelUnit1 mx.controls. dataGridClasses: :DataGridColumn/ itemToLabel mx.controls. dataGridClasses: :DataGridBase/ makeListData mx.controls: :DataGrid/ http://www. adobe.com/ 2006/flex/ mx/internal: :setupRendererFr omData mx.controls: :DataGrid/ commitProperties mx.core::UIComponen t/validateProper ties mx.managers: :LayoutManager/ validateProperti es mx.managers: :LayoutManager/ doPhasedInstanti ation Function/http: //adobe.com/ AS3/2006/ builtin:: apply [no source] mx.core::UIComponen t/callLaterDispa tcher2 mx.core::UIComponen t/callLaterDispa tcher }privatefunctiondis playSellableUnit (ids:CaServiceId Array, index:Number) :Number{returnid s.getNumberAt( index)privatefun ctiongetLabelUni t1(item:Object, column:DataGridColu mn): Number{sellableUnit 1 = displaySellableUnit (item.CaServiceI ds[column. dataField] ,0)varsellableUn it1:Number} returnsellableUn it1 mx:columns mx:DataGridColumn headerText= Content Name dataField=ContentN ame width=64 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit1 labelFunction= getLabelUnit1 width=63 wordWrap=true / mx:DataGridColumn headerText= Sellable Unit2 labelFunction= getLabelUnit2 width=63 wordWrap=true / /mx:columns Thanks so much, Michelle - beginner on Flex builder 3
[flexcoders] datagridcolumn
Hello, I have the following issue and I don't know what to do. My DatagGrid dataProvider is ArrayCollection contains the following information _1363246720dgCaAssociation = mx.controls.DataGrid (@34090a1) mx.controls.dataGridClasses.DataGridBase [inherited] = columnCount = 3 : Number columns = Array (@317af59) dataProvider = webservices.caconfigurator.CaAssociationArray (@3413601) mx.collections.ArrayCollection [inherited] = [0] = webservices.caconfigurator.CaAssociation (@33f3e51) CaServiceIds = webservices.caconfigurator.CaServiceIdArray (@3413501) mx.collections.ArrayCollection [inherited] = [0] = 242 [0xf2] : Number [1] = 243 [0xf3] : Number ContentName = cu2 : String Id = 1 : Number RadioStationName = knx : String I called DataGridColumn to display ContentName on the first column, CaServiceIds[0] on the second column and CaServiceIds[1]on the third column. But not successful. Please help I tried the following: 1) I used dataField in all 3 DataGridColumn. The first column displayed cu2, second column display 242,243 and third column display 242,243 mx:columns mx:DataGridColumn headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit1 dataField=CaServiceIds width=63 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit2 dataField=CaServiceIds width=63 wordWrap=true/ /mx:columns 2) I used labelFunction to display CaServiceIds[0] and CaServiceIds[1]. I got an error Main Thread (Suspended: Error: Unknown Property: 'null'.) mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty view::RadioStations/getLabelUnit1 mx.controls.dataGridClasses::DataGridColumn/itemToLabel mx.controls.dataGridClasses::DataGridBase/makeListData mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::setupRendererFromData mx.controls::DataGrid/commitProperties mx.core::UIComponent/validateProperties mx.managers::LayoutManager/validateProperties mx.managers::LayoutManager/doPhasedInstantiation Function/http://adobe.com/AS3/2006/builtin::apply [no source] mx.core::UIComponent/callLaterDispatcher2 mx.core::UIComponent/callLaterDispatcher }privatefunctiondisplaySellableUnit(ids:CaServiceIdArray, index:Number):Number{returnids.getNumberAt(index)privatefunctiongetLabelUnit1(item:Object, column:DataGridColumn): Number{sellableUnit1 = displaySellableUnit(item.CaServiceIds[column.dataField],0)varsellableUnit1:Number}returnsellableUnit1 mx:columns mx:DataGridColumn headerText=Content Name dataField=ContentName width=64 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit1 labelFunction=getLabelUnit1 width=63 wordWrap=true/ mx:DataGridColumn headerText=Sellable Unit2 labelFunction=getLabelUnit2 width=63 wordWrap=true/ /mx:columns Thanks so much, Michelle - beginner on Flex builder 3