Monday, April 7, 2008

Custom Aggregator sample for Flex OLAP

Here is a sample which shows a percent custom aggregator used for OLAP. The sample shows computation of percentage of values to the total value. The total value is assumed to be known before hand.

The PercentAgg class implements the IOLAPCustomAggregator interface. The constructor takes the total value as input and uses it to compute the percentage of values in the computeEnd and computeObjectEnd functions.

The sample also shows how OLAPAttribute class can be extended to OLAPTotal to replace the "(All)" value with a custom name "Total".

The sample also shows how OlapDataGrid can be created in AS and itemRendererProviders can be supplied to it and values displayed in ODG can be styled. Here is the complete source.

6 comments:

Bob Stine said...

I'm just trying to see how to get two measures to display. The sample does not build out of the box, and has been a waste of my time.

Sreenivas said...

Sorry for the trouble. I have uploaded the correct zip file with the missing file included.

However I want to mention here that I won't be able to maintain the source files across many releases of FB.

ADmin said...

You will improve your paper arrangement (stretching it and incorporating www.uk-essay.net/essays more part) and plausibly even change it as you face the examination methodology.

a.danna said...

This sounds interesting. I've never went so complex with my tasks. In fact when it comes to this kind of computing I always relied on writing services to help me out. Bit by bit I'm starting to learn all about it.

Unknown said...

Nice work by the author of this! www.masterpapers.com This is absolutely awesom! Great work!

Unknown said...

So useful to read for me. http://www.online-essay-writer.org/ You always provide us with interesting facts!