<mx:OLAPElement>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPElement Properties dimensions="" name="" /> ]]>
このメソッドは、渡されたエレメントのタイプに応じて、適切なエレメントをセットに追加します。 IOLAPHierarchy エレメントが渡されると、階層のデフォルトメンバーが追加されます。 IOLAPLevel エレメントが渡されると、レベルのすべてのメンバーが追加されます。 IOLAPMember エレメントが渡されると、セットに追加されます。
<mx:OLAPLevel>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPLevel Properties attributeName="" /> ]]>
<mx:OLAPQuery>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPQuery Properties axis="" /> ]]>
このメソッドは、渡されたエレメントのタイプに応じて、適切なエレメントをセットに追加します。 IOLAPHierarchy エレメントが渡されると、階層のデフォルトメンバーが追加されます。 IOLAPLevel エレメントが渡されると、レベルのすべてのメンバーが追加されます。 IOLAPMember エレメントが渡されると、セットに追加されます。
mm.cfg に
mm.cfg に
<mx:OLAPDimension>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPDimension Properties attributes="" elements="" hierarchies="" /> ]]>
このプロパティを使用して、単一の配列内のキューブの属性と階層を定義します。
<mx:OLAPAttribute>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPAttribute Properties dataField="" /> ]]>
この関数のシグネチャは次のとおりです。
function myDisplayNameFunction(memberName:String):String
この場合、
関数はエレメントの表示名を返します。
次の例では、1、2、3 などの数値のグループ名を "0-9"、"10-19" などの表示名に変換します。
private function myDispFunction(name:String):String { var value:int = parseInt(name); return String((value)0 + " - ") + String((value+1)0-1); }
コールバック関数のシグネチャは、次のとおりです。
function myDataFunction(rowData:Object, dataField:String):Object;この場合、
関数は、ストリングまたは数値を返すことができます。
次の例では、フラットデータ内の年齢値ごとの年齢グループを返します。
private function ageGroupingHandler(rowData:Object, field:String):Object { return rowData[field] / 10; }
<mx:OLAPCube>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPCube Properties dataProvider="" dimensions="" elements="" measures="" /> ]]>
OLAP キューブは複雑なので、Flex が OLAP クエリの結果を計算しているときにアプリケーションを一時停止しないでください。
AsyncToken クラスを使用するときは、2 つの関数を設定してクエリ結果を処理します。 この例では、showResult() 関数がクエリの成功時にクエリ結果を処理し、showFault() 関数がクエリの実行中に検出されたエラーを処理します。
<mx:Script> // Function to execute a query. private function runQuery(cube:IOLAPCube):void { // Create a query instance. var query:IOLAPQuery = getQuery(cube); // Execute the query. var token:AsyncToken = cube.execute(query); // Set up handlers for the query results. token.addResponder(new AsyncResponder(showResult, showFault)); } // Handle a query fault. private function showFault(result:FaultEvent, token:Object):void { Alert.show("Error in query."); } // Handle a query success. private function showResult(result:Object, token:Object):void { if (!result) { Alert.show("No results from query."); return; } myOLAPDG.dataProvider= result as OLAPResult; } </mx:Script> <mx:OLAPDataGrid id="myOLAPDG" width="100%" height="100%" />
このメソッドは、進行状態を表示する
このプロパティを使用して、単一の配列内のキューブの次元と測定を定義します。
このインターフェイスのメソッドを 2 つのグループで使用します。 最初のグループは
次のグループは
<mx:OLAPHierarchy>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPHierarchy Properties allMemberName="(All)" elements="An array of Levels of this hierarchy" hasAll="true|false" name="No default" /> ]]>
暗黙的に参照される次元のメンバーは、次元の構造によって異なります。
<mx:OLAPSchema>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPSchema Properties cubeArray="" /> ]]>
<mx:OLAPMember>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPMember Properties /> ]]>
IOLAPCustomAggregator インターフェイスを実装し、
aggregator={new CustomAgg()}
<mx:OLAPQueryAxis>
tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPQueryAxis Properties /> ]]>
OLAP キューブは、リレーショナルデータベースのテーブルに似ています。 リレーショナルデータベースのテーブルは 2 つの次元を持つことができますが、OLAP キューブは任意の数の次元を持つことができます。 最も単純な形式の場合、OLAP キューブの次元はフラットデータセットのフィールドに対応します。
OLAP キューブのスキーマを設定後、
OLAP キューブは複雑なので、Flex が OLAP クエリの結果を計算しているときにアプリケーションを一時停止しないでください。
AsyncToken クラスを使用するときは、2 つの関数を設定してクエリ結果を処理します。 この例では、showResult() 関数がクエリの成功時にクエリ結果を処理し、showFault() 関数がクエリの実行中に検出されたエラーを処理します。
<mx:Script> // Function to execute a query. private function runQuery(cube:IOLAPCube):void { // Create a query instance. var query:IOLAPQuery = getQuery(cube); // Execute the query. var token:AsyncToken = cube.execute(query); // Set up handlers for the query results. token.addResponder(new AsyncResponder(showResult, showFault)); } // Handle a query fault. private function showFault(result:FaultEvent, token:Object):void { Alert.show("Error in query."); } // Handle a query success. private function showResult(result:Object, token:Object):void { if (!result) { Alert.show("No results from query."); return; } myOLAPDG.dataProvider= result as OLAPResult; } </mx:Script> <mx:OLAPDataGrid id="myOLAPDG" width="100%" height="100%" />
このメソッドは、進行状態を表示する