| Package | mx.olap | 
| Class | public class OLAPQuery | 
| Inheritance | OLAPQuery  Object | 
| Implements | IOLAPQuery | 
| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
 Hide MXML Syntax
Hide MXML Syntax
  The <mx:OLAPQuery> tag inherits all of the tag attributes
  of its superclass, and adds the following tag attributes:
  
  <mx:OLAPQuery
    Properties
       axis=""
  />
 
  Default MXML Propertyaxes
More examples
Preparing a cube for a query
Creating a query axis
Executing a query and returning the results to an OLAPDataGrid control
Writing a query for a simple OLAP cube
Writing a query for a complex OLAP cube
Creating a query using a nondefault measure
Related API Elements
| Property | Defined By | ||
|---|---|---|---|
| axes : Array 
      The axis of the Query as an Array of OLAPQueryAxis instances. | OLAPQuery | ||
| COLUMN_AXIS : int = 0 [static] 
      Specifies a column axis. | OLAPQuery | ||
|  | constructor : Object 
	 A reference to the class object or constructor function for a given object instance. | Object | |
| ROW_AXIS : int = 1 [static] 
      Specifies a row axis. | OLAPQuery | ||
| SLICER_AXIS : int = 2 [static] 
      Specifies a slicer axis. | OLAPQuery | ||
| Method | Defined By | ||
|---|---|---|---|
| 
      
      Gets an axis from the query. | OLAPQuery | ||
|  | 
	 Indicates whether an object has a specified property defined. | Object | |
|  | 
	 Indicates whether an instance of the Object class is in the prototype chain of the object specified 
	 as the parameter. | Object | |
|  | 
	 Indicates whether the specified property exists and is enumerable. | Object | |
| 
      
      Sets an axis to the query. | OLAPQuery | ||
|  | 
     Sets the availability of a dynamic property for loop operations. | Object | |
|  | 
	 Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
|  | 
	 Returns the string representation of the specified object. | Object | |
|  | 
	 Returns the primitive value of the specified object. | Object | |
| axes | property | 
axes:Array| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
The axis of the Query as an Array of OLAPQueryAxis instances. A query can have three axes: column, row, and slicer.
Implementation
    public function get axes():Array    public function set axes(value:Array):void| COLUMN_AXIS | property | 
public static var COLUMN_AXIS:int = 0| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
      Specifies a column axis.
      Use this property as a value of the axisOrdinal argument
      to the getAxis() method.
      
      
| ROW_AXIS | property | 
public static var ROW_AXIS:int = 1| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
      Specifies a row axis.
      Use this property as a value of the axisOrdinal argument
      to the getAxis() method.
      
      
| SLICER_AXIS | property | 
public static var SLICER_AXIS:int = 2| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
      Specifies a slicer axis.
      Use this property as a value of the axisOrdinal argument
      to the getAxis() method.
      
      
| getAxis | () | method | 
 public function getAxis(axisOrdinal:int):IOLAPQueryAxis| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
Gets an axis from the query. You typically call this method to obtain an uninitialized IOLAPQueryAxis instance, then configure the IOLAPQueryAxis instance for the query.
Parameters
| axisOrdinal:int— SpecifyOLAPQuery.COLUMN AXISfor a column axis,OLAPQuery.ROW_AXISfor a row axis, 
      andOLAPQuery.SLICER_AXISfor a slicer axis. | 
| IOLAPQueryAxis— The IOLAPQueryAxis instance. | 
| setAxis | () | method | 
 public function setAxis(axisOrdinal:int, axis:IOLAPQueryAxis):void| Language Version: | ActionScript 3.0 | 
| Product Version: | Flex 3 | 
| Runtime Versions: | Flash Player 9, AIR 1.1 | 
Sets an axis to the query.
Parameters
| axisOrdinal:int— SpecifyOLAPQuery.COLUMN AXISfor a column axis,OLAPQuery.ROW_AXISfor a row axis, 
      andOLAPQuery.SLICER_AXISfor a slicer axis. | |
| axis:IOLAPQueryAxis— The IOLAPQueryAxis instance. | 
Thu Dec 4 2014, 05:50 PM -08:00
 Show MXML Syntax
Show MXML Syntax