<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>joel&#039;s FLEX blog &#187; OLAPDataGrid</title>
	<atom:link href="http://blog.desizen.com/TAG/olapdatagrid/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.desizen.com</link>
	<description>FLEX,网络安全,Linux</description>
	<lastBuildDate>Fri, 13 May 2011 02:18:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>FLEX例子之OLAP数据表(OLAPDataGrid)</title>
		<link>http://blog.desizen.com/4lone/539.html</link>
		<comments>http://blog.desizen.com/4lone/539.html#comments</comments>
		<pubDate>Wed, 25 Feb 2009 03:14:43 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[OLAPDataGrid]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=539</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Tree and Grid Controls:OLAPDataGrid 这个例子我没怎么弄明白,先放一下吧. 简介: The OLAPDataGrid control expands on the functionality of the AdvancedDataGrid control to add support for the display of the results of OLAP queries. Like all Flex data grid controls, the OLAPDataGrid control is designed to display data in a two-dimensional representation of rows and columns. 例子: &#60;?xml version=&#34;1.0&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Tree and Grid Controls:<a href="http://blog.desizen.com/TAG/olapdatagrid" class="st_tag internal_tag" rel="tag" title="Posts tagged with OLAPDataGrid">OLAPDataGrid</a><br />
这个例子我没怎么弄明白<span id="more-539"></span>,先放一下吧.<br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/olapdatagrid" class="st_tag internal_tag" rel="tag" title="Posts tagged with OLAPDataGrid">OLAPDataGrid</a> control expands on the functionality of the AdvancedDataGrid control to add support for the display of the results of OLAP queries. Like all <a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">Flex</a> data grid controls, the <a href="http://blog.desizen.com/TAG/olapdatagrid" class="st_tag internal_tag" rel="tag" title="Posts tagged with OLAPDataGrid">OLAPDataGrid</a> control is designed to display data in a two-dimensional representation of rows and columns.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;creationCompleteHandler();&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">      &lt;![CDATA[</span>
<span style="color: #339933;">        import mx.rpc.AsyncResponder;</span>
<span style="color: #339933;">        import mx.rpc.AsyncToken;</span>
<span style="color: #339933;">        import mx.olap.OLAPQuery;</span>
<span style="color: #339933;">        import mx.olap.OLAPSet;</span>
<span style="color: #339933;">        import mx.olap.IOLAPQuery;</span>
<span style="color: #339933;">        import mx.olap.IOLAPQueryAxis;</span>
<span style="color: #339933;">        import mx.olap.IOLAPCube;</span>
<span style="color: #339933;">        import mx.olap.OLAPResult;</span>
<span style="color: #339933;">        import mx.events.CubeEvent;</span>
<span style="color: #339933;">        import mx.controls.Alert;</span>
<span style="color: #339933;">        import mx.collections.ArrayCollection;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #339933;">        // Format of Objects in the ArrayCollection:</span>
<span style="color: #339933;">        //</span>
<span style="color: #339933;">        //  data:Object = {</span>
<span style="color: #339933;">        //    customer:&quot;AAA&quot;, </span>
<span style="color: #339933;">        //    product:&quot;ColdFusion&quot;,</span>
<span style="color: #339933;">        //    quarter:&quot;Q1&quot;</span>
<span style="color: #339933;">        //    revenue: &quot;100.00&quot; </span>
<span style="color: #339933;">        //  }</span>
<span style="color: #339933;">        //</span>
&nbsp;
<span style="color: #339933;">        [Bindable]</span>
<span style="color: #339933;">        private var flatData:ArrayCollection = new ArrayCollection(</span>
<span style="color: #339933;">        [</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:210, cost:25},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:210, cost:25},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q3&quot;, revenue:250, cost:125},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:430, cost:75},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q2&quot;, revenue:125, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flex&quot;, quarter:&quot;Q3&quot;, revenue:210, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q4&quot;, revenue:320, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flash&quot;, quarter:&quot;Q1&quot;, revenue:280, cost:70},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q3&quot;, revenue:375, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flex&quot;, quarter:&quot;Q4&quot;, revenue:430, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q1&quot;, revenue:470, cost:220},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flash&quot;, quarter:&quot;Q2&quot;, revenue:570, cost:170},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q4&quot;, revenue:215, cost:90},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flex&quot;, quarter:&quot;Q1&quot;, revenue:210, cost:90},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q2&quot;, revenue:175, cost:190},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flash&quot;, quarter:&quot;Q3&quot;, revenue:670, cost:75},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:175, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:210, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Dreamweaver&quot;,quarter:&quot;Q3&quot;, revenue:120, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:310, cost:70},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:385, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:340, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q3&quot;, revenue:470, cost:220},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:270, cost:170},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:100, cost:25},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:150, cost:25},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q3&quot;, revenue:200, cost:125},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:300, cost:75},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q2&quot;, revenue:175, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flex&quot;, quarter:&quot;Q3&quot;, revenue:100, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q4&quot;, revenue:270, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flash&quot;, quarter:&quot;Q1&quot;, revenue:370, cost:70},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q3&quot;, revenue:410, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flex&quot;, quarter:&quot;Q4&quot;, revenue:300, cost:320},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q1&quot;, revenue:510, cost:220},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flash&quot;, quarter:&quot;Q2&quot;, revenue:620, cost:170},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q4&quot;, revenue:215, cost:90},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flex&quot;, quarter:&quot;Q1&quot;, revenue:210, cost:90},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q2&quot;, revenue:175, cost:190},</span>
<span style="color: #339933;">         {customer:&quot;AAA&quot;, product:&quot;Flash&quot;, quarter:&quot;Q3&quot;, revenue:420, cost:75},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:240, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:100, cost:20},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q3&quot;, revenue:270, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;BBB&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:370, cost:70},</span>
&nbsp;
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;ColdFusion&quot;, quarter:&quot;Q1&quot;, revenue:375, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flex&quot;, quarter:&quot;Q2&quot;, revenue:420, cost:120},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Dreamweaver&quot;, quarter:&quot;Q3&quot;, revenue:680, cost:220},</span>
<span style="color: #339933;">         {customer:&quot;CCC&quot;, product:&quot;Flash&quot;, quarter:&quot;Q4&quot;, revenue:570, cost:170}         </span>
<span style="color: #339933;">        ]);</span>
&nbsp;
<span style="color: #339933;">        private function creationCompleteHandler():void {</span>
<span style="color: #339933;">            // You must initialize the cube before you </span>
<span style="color: #339933;">            // can execute a query on it.</span>
<span style="color: #339933;">            myMXMLCube.refresh();</span>
<span style="color: #339933;">        }</span>
&nbsp;
<span style="color: #339933;">        // Create the OLAP query.</span>
<span style="color: #339933;">        private function getQuery(cube:IOLAPCube):IOLAPQuery {</span>
<span style="color: #339933;">            // Create an instance of OLAPQuery to represent the query. </span>
<span style="color: #339933;">            var query:OLAPQuery = new OLAPQuery;</span>
&nbsp;
<span style="color: #339933;">            // Get the row axis from the query instance.</span>
<span style="color: #339933;">            var rowQueryAxis:IOLAPQueryAxis = </span>
<span style="color: #339933;">                query.getAxis(OLAPQuery.ROW_AXIS);</span>
<span style="color: #339933;">            // Create an OLAPSet instance to configure the axis.</span>
<span style="color: #339933;">            var productSet:OLAPSet = new OLAPSet;</span>
<span style="color: #339933;">            // Add the Product to the row to aggregate data </span>
<span style="color: #339933;">            // by the Product dimension.</span>
<span style="color: #339933;">            productSet.addElements(</span>
<span style="color: #339933;">                cube.findDimension(&quot;ProductDim&quot;).findAttribute(&quot;Product&quot;).children);</span>
<span style="color: #339933;">            // Add the OLAPSet instance to the axis.</span>
<span style="color: #339933;">            rowQueryAxis.addSet(productSet);</span>
&nbsp;
<span style="color: #339933;">            // Get the column axis from the query instance, and configure it</span>
<span style="color: #339933;">            // to aggregate the columns by the Quarter dimension. </span>
<span style="color: #339933;">            var colQueryAxis:IOLAPQueryAxis = </span>
<span style="color: #339933;">                query.getAxis(OLAPQuery.COLUMN_AXIS);         </span>
<span style="color: #339933;">            var quarterSet:OLAPSet= new OLAPSet;</span>
<span style="color: #339933;">            quarterSet.addElements(</span>
<span style="color: #339933;">                cube.findDimension(&quot;QuarterDim&quot;).findAttribute(&quot;Quarter&quot;).children);</span>
<span style="color: #339933;">            colQueryAxis.addSet(quarterSet);</span>
&nbsp;
<span style="color: #339933;">            return query;       </span>
<span style="color: #339933;">        }</span>
&nbsp;
<span style="color: #339933;">        // Event handler to execute the OLAP query </span>
<span style="color: #339933;">        // after the cube completes initialization.</span>
<span style="color: #339933;">        private function runQuery(event:CubeEvent):void {</span>
<span style="color: #339933;">            // Get cube.</span>
<span style="color: #339933;">            var cube:IOLAPCube = IOLAPCube(event.currentTarget);</span>
<span style="color: #339933;">            // Create a query instance.</span>
<span style="color: #339933;">            var query:IOLAPQuery = getQuery(cube);</span>
<span style="color: #339933;">            // Execute the query.</span>
<span style="color: #339933;">            var token:AsyncToken = cube.execute(query);</span>
<span style="color: #339933;">            // Setup handlers for the query results.</span>
<span style="color: #339933;">            token.addResponder(new AsyncResponder(showResult, showFault));</span>
<span style="color: #339933;">        }</span>
&nbsp;
<span style="color: #339933;">        // Handle a query fault.</span>
<span style="color: #339933;">        private function showFault(result:Object, token:Object):void {</span>
<span style="color: #339933;">            Alert.show(&quot;Error in query.&quot;);</span>
<span style="color: #339933;">        }</span>
&nbsp;
<span style="color: #339933;">        // Handle a successful query by passing the query results to </span>
<span style="color: #339933;">        // the OLAPDataGrid control..</span>
<span style="color: #339933;">        private function showResult(result:Object, token:Object):void {</span>
<span style="color: #339933;">            if (!result) {</span>
<span style="color: #339933;">                Alert.show(&quot;No results from query.&quot;);</span>
<span style="color: #339933;">                return;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">            myOLAPDG.dataProvider= result as OLAPResult;            </span>
<span style="color: #339933;">        }        </span>
<span style="color: #339933;">      ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPCube</span> name=<span style="color: #ff0000;">&quot;FlatSchemaCube&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{flatData}&quot;</span> id=<span style="color: #ff0000;">&quot;myMXMLCube&quot;</span> complete=<span style="color: #ff0000;">&quot;runQuery(event);&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPDimension</span> name=<span style="color: #ff0000;">&quot;CustomerDim&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPAttribute</span> name=<span style="color: #ff0000;">&quot;Customer&quot;</span> dataField=<span style="color: #ff0000;">&quot;customer&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPHierarchy</span> name=<span style="color: #ff0000;">&quot;CustomerHier&quot;</span> hasAll=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPLevel</span> attributeName=<span style="color: #ff0000;">&quot;Customer&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPHierarchy</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPDimension</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPDimension</span> name=<span style="color: #ff0000;">&quot;ProductDim&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPAttribute</span> name=<span style="color: #ff0000;">&quot;Product&quot;</span> dataField=<span style="color: #ff0000;">&quot;product&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPHierarchy</span> name=<span style="color: #ff0000;">&quot;ProductHier&quot;</span> hasAll=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPLevel</span> attributeName=<span style="color: #ff0000;">&quot;Product&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPHierarchy</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPDimension</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPDimension</span> name=<span style="color: #ff0000;">&quot;QuarterDim&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPAttribute</span> name=<span style="color: #ff0000;">&quot;Quarter&quot;</span> dataField=<span style="color: #ff0000;">&quot;quarter&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPHierarchy</span> name=<span style="color: #ff0000;">&quot;QuarterHier&quot;</span> hasAll=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPLevel</span> attributeName=<span style="color: #ff0000;">&quot;Quarter&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPHierarchy</span><span style="color: #7400FF;">&gt;</span></span> 
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPDimension</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPMeasure</span> name=<span style="color: #ff0000;">&quot;Revenue&quot;</span> </span>
<span style="color: #000000;">            dataField=<span style="color: #ff0000;">&quot;revenue&quot;</span> </span>
<span style="color: #000000;">            aggregator=<span style="color: #ff0000;">&quot;SUM&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:OLAPCube</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;OLAPDataGrid Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> width=<span style="color: #ff0000;">&quot;500&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:OLAPDataGrid</span> id=<span style="color: #ff0000;">&quot;myOLAPDG&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/olapdatagrid" title="OLAPDataGrid" rel="tag">OLAPDataGrid</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/605.html" title="FLEX例子之应用程序控制条(ApplicationControlBar) (2009年3月14日)">FLEX例子之应用程序控制条(ApplicationControlBar)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/682.html" title="學長幫我修電腦,诺顿够创意 (2009年4月20日)">學長幫我修電腦,诺顿够创意</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/628.html" title="FLEX例子 &#8211; Canvas(画布) (2009年3月31日)">FLEX例子 &#8211; Canvas(画布)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/131.html" title="常用CSS缩写语法总结 (2008年10月8日)">常用CSS缩写语法总结</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/271.html" title="FLEX例子之下拉列表框(ComboBox) (2008年12月23日)">FLEX例子之下拉列表框(ComboBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/199.html" title="KingCMS之模块管理 (2008年10月27日)">KingCMS之模块管理</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/420.html" title="FLEX例子之按钮条(ButtonBar) (2009年2月4日)">FLEX例子之按钮条(ButtonBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/447.html" title="FLEX例子之List(列表) (2009年2月16日)">FLEX例子之List(列表)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/186.html" title="FLEX作品&#8211;地图控件 (2008年10月23日)">FLEX作品&#8211;地图控件</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/48.html" title="flex 入门教程 (2008年8月18日)">flex 入门教程</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/539.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

