Adobe Dreamweaver Forums



Last 10 THreads :         Re: 2.1 GB TIF size limit (Last Post : Buko - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: sRGB vs. Adobe (1998) RGB (Last Post : pfigen@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: SFW and date created (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »          help me with adjustments layers in CS4 (Last Post : Ramón_G_Castañeda@adobeforums.com - Replies : 1 - Views : 2 )           »          Snippet Pod Problems (Last Post : Pat@ffic - Replies : 4 - Views : 5 )           »          bad luck (Last Post : newwaveboats - Replies : 0 - Views : 1 )           »          Cannot setup audio with Captivate 2 (Last Post : c..k - Replies : 0 - Views : 1 )           »          Re: Urgent: Can Only Record in Demonstration Mode (Last Post : halyna - Replies : 0 - Views : 1 )           »          Change custom Vector class to new Vector class in player10 (Last Post : VarioPegged - Replies : 1 - Views : 2 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 01:35 AM
rsarma
 
Posts: n/a
Diggs:
Default Summary from ArrayCollection

Hi!
I have been trying to see if there is a way to create summary data with
grouping columns so that the summary data could be used with components other
than AdvancedDataGrid (like charts etc.). I have flat data (about 5K rows with
20 columns) in an ArrayCollection and need to slice the data about five
different ways for charts.
I could do it manually while iterating through the collection (or get
aggregated datasets from by BlazeDS service) but I was wondering if there is an
existing grouping function that could be used.
I'm not even sure if it is a good to do all the aggregation on the client (i
have a feeling it will take too long) - would I be better of getting the
aggregated data from the server?

Thanks,
Ram



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2008, 02:42 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Summary from ArrayCollection


"rsarma" <webforumsuser@macromedia.com> wrote in message
news:gg2eqg$h15$1@forums.macromedia.com...
> Hi!
> I have been trying to see if there is a way to create summary data with
> grouping columns so that the summary data could be used with components
> other
> than AdvancedDataGrid (like charts etc.). I have flat data (about 5K rows
> with
> 20 columns) in an ArrayCollection and need to slice the data about five
> different ways for charts.
> I could do it manually while iterating through the collection (or get
> aggregated datasets from by BlazeDS service) but I was wondering if there
> is an
> existing grouping function that could be used.
> I'm not even sure if it is a good to do all the aggregation on the client
> (i
> have a feeling it will take too long) - would I be better of getting the
> aggregated data from the server?


You can use GroupingCollections however you want. I didn't do summary rows,
but check out this example:
http://flexdiary.blogspot.com/2008/0...featuring.html


Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 04:13 PM
rsarma
 
Posts: n/a
Diggs:
Default Re: Summary from ArrayCollection

Hi Amy,
Thanks a bunch for your example - Definitely sheds a lot of light on the
GroupingCollection objec. However, I still can't figure out how to use the
SummaryRow if I define one (seems to be specific to advanced data grid since it
uses placement etc.). I am new to flex and have only been using it for a couple
of days now.

Reply With Quote


  #4 (permalink)  
Old 11-20-2008, 04:23 PM
rsarma
 
Posts: n/a
Diggs:
Default Re: Summary from ArrayCollection

If i use summaryPlacement="group" I can access it through the getRoot() function. Is this documentation hard to find or is it just me (granted I have only been using flex for a few days now)?
Reply With Quote
  #5 (permalink)  
Old 11-20-2008, 05:33 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Summary from ArrayCollection


"rsarma" <webforumsuser@macromedia.com> wrote in message
news:gg42bd$k1l$1@forums.macromedia.com...
> If i use summaryPlacement="group" I can access it through the getRoot()
> function. Is this documentation hard to find or is it just me (granted I
> have only been using flex for a few days now)?


When I did the example, I spent a lot of time in the language reference in
the GroupingCollection, Grouping, and GroupingField. If you've only been
using Flex a few days, you might find this useful:

http://flexdiary.blogspot.com/2008/0...x-builder.html

I think that the Flex team did not intend for people to use these classes
outside of ADG, but I find them extremely useful in all kinds of other
situations. Sorry I can't offer more specific help.

-Amy


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk