[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
I'm glad you have a working solution. --- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: Problem Solved... I guess. I was turning my HTTPService result into an XMLList. I just switched it to an arrayCollection and I no longer loose the ability to sort when I refresh the data. Maybe there is some limitation when using an XMLList, I wish I could have found out for sure, but at least I have a working product now. Lesson Learned: use arrayCollection, it's apparently a superior veriable type. Thanks for all the help and time valdhor. -- View this message in context: http://old.nabble.com/Problem-sorting-advancedDataGrid-after-dataprovider-updated-tp26326531p26379929.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
--- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: Problem Solved... I guess. I was turning my HTTPService result into an XMLList. I just switched it to an arrayCollection and I no longer loose the ability to sort when I refresh the data. Maybe there is some limitation when using an XMLList, I wish I could have found out for sure, but at least I have a working product now. Lesson Learned: use arrayCollection, it's apparently a superior veriable type. XMLList, unlike, say, XMLListCollection, is not a ListCollectionView, so it doesn't generate the proper events to allow anything bound to it to know that something has changed. HTH; Amy
[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
Could you post some sample data arrays. It's not too easy to try out your code without it. --- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: I'm bumping this post because I am really needing an answer ASAP. At this point I'm just hoping my boss doesn't notice. ANY help will be appreciated. -- View this message in context: http://old.nabble.com/Problem-sorting-advancedDataGrid-after-dataprovider-updated-tp26326531p26374637.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
It looks like you have a bug. When I click on the Enterprise Library tab, the HTTPService is invoked and the data is returned. Then inside your getTemplates_result function it crashes with a null object reference when you try to do gc.refresh(). I would check why the app crashes here (I don't have time to debug your code). --- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: valdhor-3 wrote: Could you post some sample data arrays. It's not too easy to try out your code without it. Sure here's some for the first two httpServices I'm running. The third isn't necesary since that code isn't called untill after this problem presents itself. * getPHPvars: ?xml version=1.0 encoding=UTF-8 ? rows row userID11001/userID enterpriseID1/enterpriseID communityID1/communityID clinicID15/clinicID isSuperUser0/isSuperUser /row /rows ** getTemplates: ?xml version=1.0 encoding=UTF-8 ? rows row namebreast lump/name insertDate05/03/2004/insertDate templateID33/templateID abbreviationbreast lmp/abbreviation templateTypeID1/templateTypeID templateTypeNew Problem/templateType /row row nameupper respiratory symptoms/name insertDate05/03/2004/insertDate templateID3/templateID abbreviationuri/abbreviation templateTypeID1/templateTypeID templateTypeNew Problem/templateType /row row namechange in bowel habits/name insertDate05/03/2004/insertDate templateID35/templateID abbreviationchang-bowels/abbreviation templateTypeID1/templateTypeID templateTypeNew Problem/templateType /row /rows *** Thanks again -- View this message in context: http://old.nabble.com/Problem-sorting-advancedDataGrid-after-dataprovider-updated-tp26326531p26375403.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
I am running SDK 3.4. I still believe that is the crux of the problem. You can't sort because the gc.refresh() is not working properly. --- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: My app isn't crashing at this point, maybe it's a difference of which SDK we are running, or more likely some specific issue of environment, but when I click another tab it runs the HTTPService and repopulates the Grid. It's only after that repopulation that I loose the ability to sort the data. Thanks for looking into it though. valdhor-3 wrote: It looks like you have a bug. When I click on the Enterprise Library tab, the HTTPService is invoked and the data is returned. Then inside your getTemplates_result function it crashes with a null object reference when you try to do gc.refresh(). I would check why the app crashes here (I don't have time to debug your code). -- View this message in context: http://old.nabble.com/Problem-sorting-advancedDataGrid-after-dataprovider-updated-tp26326531p26378551.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Problem sorting advancedDataGrid after dataprovider updated
So, if you try it without the grouping collection, does it work? Are you monitoring the collectionevent.CHANGE event? What happens when the collection changes? --- In flexcoders@yahoogroups.com, InvertedSpear invertedsp...@... wrote: Ok, we are running the same SDK. Lets try to explore what you are identifying. Please forgive me as I am pretty new to FLEX and AS. gc is the id of a GroupingCollection of a dataProvider. refresh() is a built-in public method to GroupingCollections. How can that be a problem unless it's a bug in the FLEX SDK itself? Further more, it runs fine on the initial call that populates the data the first time. It's the exact same function running with different data when the tab is clicked, why would it not cause a problem the first time but does all subsequent times? I'm not doubting that this may be the problem, but if it is, I have no Idea where to start to fix it. Thanks again. valdhor-3 wrote: I am running SDK 3.4. I still believe that is the crux of the problem. You can't sort because the gc.refresh() is not working properly. -- View this message in context: http://old.nabble.com/Problem-sorting-advancedDataGrid-after-dataprovider-updated-tp26326531p26379293.html Sent from the FlexCoders mailing list archive at Nabble.com.