davej
12-11-2007, 08:41 PM
I have data that I am presenting in a datagrid. I need to add the totals for each column and row. I have found OLAPDataGrid that is capable of that. However I cant seem to find a basic tutorial. The few I have found are very complex and involve lots of other queries. I just need a basic start to get myself wrapped around this.
Here is my OLAPCube
<mx:OLAPCube name="FlatSchemaCube"
dataProvider="{results.result}"
id="myMXMLCube">
<mx:OLAPDimension name="STRUCTURESDim">
<mx:OLAPAttribute name="STRUCTURES" dataField="STRUCTURES"/>
<mx:OLAPHierarchy name="STRUCTURESHier" hasAll="true">
<mx:OLAPLevel attributeName="STRUCTURES"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="AVIONICSDim">
<mx:OLAPAttribute name="AVIONICS" dataField="AVIONICS"/>
<mx:OLAPHierarchy name="AVIONICSHier" hasAll="true">
<mx:OLAPLevel attributeName="AVIONICS"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="PROPULSIONDim">
<mx:OLAPAttribute name="PROPULSION" dataField="PROPULSION"/>
<mx:OLAPHierarchy name="PROPULSIONHier" hasAll="true">
<mx:OLAPLevel attributeName="PROPULSION"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPMeasure name="Revenue"
dataField="revenue"
aggregator="SUM"/>
</mx:OLAPCube>
Any direction would be great.
Here is my OLAPCube
<mx:OLAPCube name="FlatSchemaCube"
dataProvider="{results.result}"
id="myMXMLCube">
<mx:OLAPDimension name="STRUCTURESDim">
<mx:OLAPAttribute name="STRUCTURES" dataField="STRUCTURES"/>
<mx:OLAPHierarchy name="STRUCTURESHier" hasAll="true">
<mx:OLAPLevel attributeName="STRUCTURES"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="AVIONICSDim">
<mx:OLAPAttribute name="AVIONICS" dataField="AVIONICS"/>
<mx:OLAPHierarchy name="AVIONICSHier" hasAll="true">
<mx:OLAPLevel attributeName="AVIONICS"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPDimension name="PROPULSIONDim">
<mx:OLAPAttribute name="PROPULSION" dataField="PROPULSION"/>
<mx:OLAPHierarchy name="PROPULSIONHier" hasAll="true">
<mx:OLAPLevel attributeName="PROPULSION"/>
</mx:OLAPHierarchy>
</mx:OLAPDimension>
<mx:OLAPMeasure name="Revenue"
dataField="revenue"
aggregator="SUM"/>
</mx:OLAPCube>
Any direction would be great.