PackageTop Level
Classpublic class FlexPivotComponent
InheritanceFlexPivotComponent Inheritance mx.containers.Canvas



Public Properties
 PropertyDefined By
  autoLoad : Boolean
[write-only]
FlexPivotComponent
  binaryAssets : Object
[write-only]
FlexPivotComponent
  catalog : String
[write-only] The catalog property lets you define the data source catalog name of the OLAP data source, such as Mondrian or Microsoft Analysis Services.
FlexPivotComponent
  chartTitle : String
[write-only] The chartTitle property lets you set the title for charts.
FlexPivotComponent
  chartType : String
[write-only] The chartType property lets you define the chart type.
FlexPivotComponent
  columnDecimals : Boolean
[write-only] The columnDecimals property is one of the number formatting properties and it lets you define whether the formatting should add extra zeros in end to complete number length (true) or not (false).
FlexPivotComponent
  columns : *
[write-only] The columns property lets you set the columns data into your predefined report.
FlexPivotComponent
  configuratorButton : Boolean
[write-only]
FlexPivotComponent
  configUrl : String
[write-only] The configUrl property lets you define a URL of the configuration XML file.
FlexPivotComponent
  cube : String
[write-only] The cube property lets you define the cube name from the given catalog of the OLAP data source, such as Mondrian or Microsoft Analysis Services.
FlexPivotComponent
  currencySymbol : String
[write-only] The currencySymbol property is one of the number formatting properties and it lets you define the currency symbol.
FlexPivotComponent
  currencySymbolAlign : String
[write-only] The currencySymbolAlign property is one of the number formatting properties and it lets you define the currency symbol alignment.
FlexPivotComponent
  dataSourceInfo : String
[write-only] The dataSourceInfo property lets you define the service info of the OLAP data source, such as Mondrian or Microsoft Analysis Services.
FlexPivotComponent
  decimalPlaces : int
[write-only] The decimalPlaces property is one of the number formatting properties and it lets you define the number of decimal places (the number of digits following the decimal separator).
FlexPivotComponent
  decimalSeparator : String
[write-only] The decimalSeparator property is one of the number formatting properties and it lets you define the decimal separator for data cell rendering.
FlexPivotComponent
  editableHeaders : Boolean
[write-only]
FlexPivotComponent
  expandAll : Boolean
[write-only] The expandAll property defines whether to expand all rows and columns in a report or not.
FlexPivotComponent
  fieldSeparator : String
[write-only] The fieldSeparator property lets you set the field separator for CSV (if your data source is CSV).
FlexPivotComponent
  filename : String
[write-only] The filename property lets you set the path to CSV data source.
FlexPivotComponent
  fitGridlines : Boolean
[write-only]
FlexPivotComponent
  gridColumnCount : int
[read-only] Returns the number of grid columns.
FlexPivotComponent
  gridRowCount : int
[read-only] Returns the number of grid rows.
FlexPivotComponent
  gridTitle : String
[write-only] The gridTitle property lets you set the title for grid.
FlexPivotComponent
  infinityValue : String
[write-only]
FlexPivotComponent
  licenseFilePath : String
[write-only] The licenseFilePath property lets you define the path the TXT file with the license key.
FlexPivotComponent
  localSettingsURL : String
[write-only]
FlexPivotComponent
  logoURL : String
[write-only]
FlexPivotComponent
  maxDecimalPlaces : int
[write-only] The maxDecimalPlaces property is one of the number formatting properties and it lets you define the same as decimalPlaces, but shows no more digits, than specified and adds no extra zeros in end to complete number length.
FlexPivotComponent
  maxSymbols : int
[write-only] The maxSymbols property is one of the number formatting properties and it lets you define the maximum number of symbols in cell.
FlexPivotComponent
  measures : *
[write-only] The measures property lets you set the measures data into your predefined report.
FlexPivotComponent
  nullValue : String
[write-only]
FlexPivotComponent
  pages : *
[write-only] The pages property lets you set the pages data into your predefined report.
FlexPivotComponent
  percentZoom : Number
[write-only] Zooms Grid in percents.
FlexPivotComponent
  productKey : String
[write-only] The productKey property lets you set the license key.
FlexPivotComponent
  proxyUrl : String
[write-only] The proxyUrl property lets you define the proxy URL to the OLAP data source, such as Mondrian or Microsoft Analysis Services.
FlexPivotComponent
  report : ReportValueObject
You can create a predefined report after dynamically added data define ReportValueObject to get exact data you need after data update.
FlexPivotComponent
  rows : *
[write-only] The rows property lets you set the rows data into your predefined report.
FlexPivotComponent
  showAggregations : Boolean
[write-only]
FlexPivotComponent
  showChartZeroValues : Boolean
[write-only]
FlexPivotComponent
  showFieldsList : Boolean
[write-only] The showFieldsList property lets you define whether to show Fields List or hide it.
FlexPivotComponent
  showFilter : Boolean
[write-only]
FlexPivotComponent
  showGrandTotals : Boolean
[write-only]
FlexPivotComponent
  showHeaders : Boolean
[write-only]
FlexPivotComponent
  showReportFilter : Boolean
[write-only]
FlexPivotComponent
  showTotals : Boolean
[write-only]
FlexPivotComponent
  sorting : Boolean
[write-only] The sorting property lets you enable or disable the data sorting feature.
FlexPivotComponent
  styleSheetName : String
[write-only] The styleSheetName property lets you define the URL to CSS file to apply the skin.
FlexPivotComponent
  swfFilePath : String
[write-only] The swfFilePath property lets you define the path to resource files, such as assets.swf, styles, skins etc.
FlexPivotComponent
  thousandsSeparator : String
[write-only] The thousandsSeparator property is one of the number formatting properties and it lets you define the thousands separator for data cell rendering.
FlexPivotComponent
  viewType : String
[write-only] The viewType property lets you define the view type: show Pivot Grid or selected chart.
FlexPivotComponent
  zoom : Number
[write-only] Zooms Grid
FlexPivotComponent
Public Methods
 MethodDefined By
  
Constructor.
FlexPivotComponent
  
addDataArray(array:Array):void
Adds dynamically multiple data rows to the data source.
FlexPivotComponent
  
addDataRecord(object:Object):void
Adds dynamically one data record to the data source.
FlexPivotComponent
  
addDimension(uniqueName:String, caption:String):void
Adds dynamically Dimension to the data source.
FlexPivotComponent
  
addFormat(format:FormatValueObject, measureName:String):void
deprecated Use setFormat() Sets the formatting for cells.
FlexPivotComponent
  
addHierarchy(dimensionUniqueName:String, uniqueName:String, caption:String):void
Adds dynamically Hierarchy to Dimension in the data source.
FlexPivotComponent
  
addMeasure(uniqueName:String, caption:String, aggregation:String, format:String):void
Adds dynamically Measure to the data source.
FlexPivotComponent
  
clear():void
Clears all data and views; Pivot Grid, Charts and Fields List become empty.
FlexPivotComponent
  
clearFilter(hierarchyName:String):void
Clears the filter for hierarchy by hierarchyName.
FlexPivotComponent
  
Clears only view, such as Pivot Grid and Charts.
FlexPivotComponent
  
Closes Fields List.
FlexPivotComponent
  
Collapses all dimensions on the grid and on charts
FlexPivotComponent
  
connectTo(params:Object):void
Connects to the data source.
FlexPivotComponent
  
Redraws concrete cell on the grid
FlexPivotComponent
  
Expands all dimensions on the grid and on charts
FlexPivotComponent
  
expandData(value:Boolean = true):void
deprecated
FlexPivotComponent
  
export(type:String, exportOptions:ExportOptions = null, callbackHandler:Function = null):void
Exports Grid or Chart to preferred format.
FlexPivotComponent
  
Returns all hierarchies.
FlexPivotComponent
  
Returns all measures.
FlexPivotComponent
  
getCell(rowIdx:int, colIdx:int):PivotGridCellRenderer
Gets the cell object by row and column indexes.
FlexPivotComponent
  
getColumns():Array
Returns the hierarchies selected as columns for the report.
FlexPivotComponent
  
getFilter(hierarchyName:String):Array
Returns the filter for hierarchy by hierarchyName.
FlexPivotComponent
  
getFormat(measureName:String):FormatValueObject
Returns the formatting for the measure by measure name.
FlexPivotComponent
  
Returns an object which represents current localization.
FlexPivotComponent
  
getMeasures():Array
Returns the measures selected for the report.
FlexPivotComponent
  
getMembers(hierarchyName:String, callbackHandler:Function = null):Array
Gets all members of hierarchy by hierarchy name.
FlexPivotComponent
  
getPages():Array
Returns the hierarchies selected as pages for the report.
FlexPivotComponent
  
getRows():Array
Returns the hierarchies selected as rows for the report.
FlexPivotComponent
  
Gets selected cell
FlexPivotComponent
  
getSort(hierarchyName:String):String
Returns the sort type for hierarchy by hierarchyName.
FlexPivotComponent
  
getValue(rowIdx:int, colIdx:int):Number
Gets the cell value by row and column indexes.
FlexPivotComponent
  
load():void
Starts loading data to FlexPivotComponent and applying the report.
FlexPivotComponent
  
Opens Fields List.
FlexPivotComponent
  
print():void
Prints Grid via OS print manager.
FlexPivotComponent
  
Removes selection on the grid
FlexPivotComponent
  
save(filename:String, destinationType:String = server, callbackHandler:Function = null, url:String):void
Saves a report.
FlexPivotComponent
  
saveReport(url:String, name:String = report.xml, callbackHandler:Function = null, destinationType:String = server):void
deprecated Saves the report.
FlexPivotComponent
  
setActualSize(newWidth:Number, newHeight:Number):void
[override]
FlexPivotComponent
  
setBottomX(hierarchyName:String, num:int, measureName:String):void
Sets the Bottom X filter for hierarchy by hierarchyName, X, and measure.
FlexPivotComponent
  
setChartTitle(value:String):void
Sets the title for charts in run time.
FlexPivotComponent
  
setColumnWidth(colIdx:int, width:int):void
The autoLoad property defines whether the report will be loaded automatically after the component initialization or the report will be loaded only after the method load() call.
FlexPivotComponent
  
setFilter(hierarchyName:String, items:Array):void
Sets the filter for hierarchy by hierarchyName.
FlexPivotComponent
  
setFormat(format:FormatValueObject, measureName:String):void
Sets the formatting for cells.
FlexPivotComponent
  
setGridTitle(value:String):void
Sets the title for grid in run time.
FlexPivotComponent
  
setLocalizedLabels(labels:Object):void
Sets a localization.
FlexPivotComponent
  
setRowHeight(rowIdx:int, height:int):void
FlexPivotComponent
  
setSort(hierarchyName:String, sortType:String):void
Sets the sort type for hierarchy by hierarchyName.
FlexPivotComponent
  
setStyleSheet(value:String):void
Applies the skin loaded from the URL to CSS file.
FlexPivotComponent
  
setTopX(hierarchyName:String, num:int, measureName:String):void
Sets the Top X filter for hierarchy by hierarchyName, X, and measure.
FlexPivotComponent
  
showCharts(type:String):void
Switches to Charts view, default chart type is "bar".
FlexPivotComponent
  
showGrid():void
Switches to Grid view.
FlexPivotComponent
  
sortValues(axisName:String, type:String, tuple:Array, measureName:String):void
Sorts values.
FlexPivotComponent
Events
 Event Summary Defined By
  Dispatched when fields list is closedFlexPivotComponent
  Dispatched when a filter icon is pressedFlexPivotComponent
  Dispatched when a user presses and releases the main button of a pointing device over the defined grid cell.FlexPivotComponent
  Dispatched when pivot is created and is ready to receive data.FlexPivotComponent
  Dispatched when the rendering of pivot grid or chart has been finished.FlexPivotComponent
  Dispatched when data are received and updated.FlexPivotComponent
Property Detail
autoLoadproperty
autoLoad:Boolean  [write-only]


Implementation
    public function set autoLoad(value:Boolean):void
binaryAssetsproperty 
binaryAssets:Object  [write-only]


Implementation
    public function set binaryAssets(value:Object):void
catalogproperty 
catalog:String  [write-only]

The catalog property lets you define the data source catalog name of the OLAP data source, such as Mondrian or Microsoft Analysis Services.

There is no default value for this property.


Implementation
    public function set catalog(value:String):void

See also

chartTitleproperty 
chartTitle:String  [write-only]

The chartTitle property lets you set the title for charts.

The default value is "".


Implementation
    public function set chartTitle(value:String):void
chartTypeproperty 
chartType:String  [write-only]

The chartType property lets you define the chart type.

If incorrect chart type is passed, Pivot Grid will be shown.


Implementation
    public function set chartType(value:String):void

See also

columnDecimalsproperty 
columnDecimals:Boolean  [write-only]

The columnDecimals property is one of the number formatting properties and it lets you define whether the formatting should add extra zeros in end to complete number length (true) or not (false).

The default value is false.


Implementation
    public function set columnDecimals(value:Boolean):void

See also

columnsproperty 
columns:*  [write-only]

The columns property lets you set the columns data into your predefined report.


Implementation
    public function set columns(value:any):void

See also

configuratorButtonproperty 
configuratorButton:Boolean  [write-only]


Implementation
    public function set configuratorButton(value:Boolean):void
configUrlproperty 
configUrl:String  [write-only]

The configUrl property lets you define a URL of the configuration XML file. The configUrl property is used when you set the component configuration via XML.

Note: After setting this parameter, FlexPivotComponent will ignore the previous configuration.

There is no default value for this property.


Implementation
    public function set configUrl(value:String):void

Example
             <pivot:FlexPivotComponent configUrl="config.xml" />
             
cubeproperty 
cube:String  [write-only]

The cube property lets you define the cube name from the given catalog of the OLAP data source, such as Mondrian or Microsoft Analysis Services.

There is no default value for this property.


Implementation
    public function set cube(value:String):void

See also

currencySymbolproperty 
currencySymbol:String  [write-only]

The currencySymbol property is one of the number formatting properties and it lets you define the currency symbol.

Set this parameter, if you want to format numbers as currency.

The default value is null.


Implementation
    public function set currencySymbol(value:String):void

See also

currencySymbolAlignproperty 
currencySymbolAlign:String  [write-only]

The currencySymbolAlign property is one of the number formatting properties and it lets you define the currency symbol alignment.

The default value is left.


Implementation
    public function set currencySymbolAlign(value:String):void

See also

dataSourceInfoproperty 
dataSourceInfo:String  [write-only]

The dataSourceInfo property lets you define the service info of the OLAP data source, such as Mondrian or Microsoft Analysis Services.

Contains the information, such as the instance name, required to connect to the data source.

There is no default value for this property.


Implementation
    public function set dataSourceInfo(value:String):void

See also

decimalPlacesproperty 
decimalPlaces:int  [write-only]

The decimalPlaces property is one of the number formatting properties and it lets you define the number of decimal places (the number of digits following the decimal separator).

-1 means "no formatting"

The default value is -1.


Implementation
    public function set decimalPlaces(value:int):void

See also

decimalSeparatorproperty 
decimalSeparator:String  [write-only]

The decimalSeparator property is one of the number formatting properties and it lets you define the decimal separator for data cell rendering.

The default value is ..


Implementation
    public function set decimalSeparator(value:String):void

See also

editableHeadersproperty 
editableHeaders:Boolean  [write-only]


Implementation
    public function set editableHeaders(value:Boolean):void
expandAllproperty 
expandAll:Boolean  [write-only]

The expandAll property defines whether to expand all rows and columns in a report or not.

The default value is false.


Implementation
    public function set expandAll(value:Boolean):void
fieldSeparatorproperty 
fieldSeparator:String  [write-only]

The fieldSeparator property lets you set the field separator for CSV (if your data source is CSV). By default, field separator is automatically defined.


Implementation
    public function set fieldSeparator(value:String):void

See also

filenameproperty 
filename:String  [write-only]

The filename property lets you set the path to CSV data source. It can be CSV file or path to the service which returns CSV.

There is no default value for this property.


Implementation
    public function set filename(value:String):void
fitGridlinesproperty 
fitGridlines:Boolean  [write-only]


Implementation
    public function set fitGridlines(value:Boolean):void
gridColumnCountproperty 
gridColumnCount:int  [read-only]

Returns the number of grid columns.


Implementation
    public function get gridColumnCount():int

See also

gridRowCountproperty 
gridRowCount:int  [read-only]

Returns the number of grid rows.


Implementation
    public function get gridRowCount():int

See also

gridTitleproperty 
gridTitle:String  [write-only]

The gridTitle property lets you set the title for grid.

The default value is "".


Implementation
    public function set gridTitle(value:String):void
infinityValueproperty 
infinityValue:String  [write-only]


Implementation
    public function set infinityValue(value:String):void
licenseFilePathproperty 
licenseFilePath:String  [write-only]

The licenseFilePath property lets you define the path the TXT file with the license key.

The productKey property is the alternative way to set the license key.

The default value is null.


Implementation
    public function set licenseFilePath(value:String):void

See also

localSettingsURLproperty 
localSettingsURL:String  [write-only]


Implementation
    public function set localSettingsURL(value:String):void
logoURLproperty 
logoURL:String  [write-only]


Implementation
    public function set logoURL(value:String):void
maxDecimalPlacesproperty 
maxDecimalPlaces:int  [write-only]

The maxDecimalPlaces property is one of the number formatting properties and it lets you define the same as decimalPlaces, but shows no more digits, than specified and adds no extra zeros in end to complete number length.

Usually used for currency formatting. -1 means "no formatting"

The default value is -1.


Implementation
    public function set maxDecimalPlaces(value:int):void

See also

maxSymbolsproperty 
maxSymbols:int  [write-only]

The maxSymbols property is one of the number formatting properties and it lets you define the maximum number of symbols in cell.

The default value is 10.


Implementation
    public function set maxSymbols(value:int):void

See also

measuresproperty 
measures:*  [write-only]

The measures property lets you set the measures data into your predefined report.


Implementation
    public function set measures(value:any):void

See also

nullValueproperty 
nullValue:String  [write-only]


Implementation
    public function set nullValue(value:String):void
pagesproperty 
pages:*  [write-only]

The pages property lets you set the pages data into your predefined report.


Implementation
    public function set pages(value:any):void

See also

percentZoomproperty 
percentZoom:Number  [write-only]

Zooms Grid in percents.

Equal to zoom method, but argument is in percents.


Implementation
    public function set percentZoom(value:Number):void

See also

productKeyproperty 
productKey:String  [write-only]

The productKey property lets you set the license key.

The licenseFilePath property is the alternative way to set the license key.

The default value is null.


Implementation
    public function set productKey(value:String):void
proxyUrlproperty 
proxyUrl:String  [write-only]

The proxyUrl property lets you define the proxy URL to the OLAP data source, such as Mondrian or Microsoft Analysis Services.

There is no default value for this property.


Implementation
    public function set proxyUrl(value:String):void

See also

reportproperty 
report:ReportValueObject

You can create a predefined report after dynamically added data define ReportValueObject to get exact data you need after data update.


Implementation
    public function get report():ReportValueObject
    public function set report(value:ReportValueObject):void

See also


Example
             var reportVO:ReportValueObject = new ReportValueObject();
             reportVO.rows = ["[Country].[Country]", "[Product].[Category]"];
             reportVO.columns = ["[Product].[Color]"];
             reportVO.pages = ["[Product].[Size]"];
             reportVO.measures = ["[Measures].[Price]"];
             pivot.report = reportVO;
             pivot.load();
             
rowsproperty 
rows:*  [write-only]

The rows property lets you set the rows data into your predefined report.


Implementation
    public function set rows(value:any):void

See also

showAggregationsproperty 
showAggregations:Boolean  [write-only]


Implementation
    public function set showAggregations(value:Boolean):void
showChartZeroValuesproperty 
showChartZeroValues:Boolean  [write-only]


Implementation
    public function set showChartZeroValues(value:Boolean):void
showFieldsListproperty 
showFieldsList:Boolean  [write-only]

The showFieldsList property lets you define whether to show Fields List or hide it.


Implementation
    public function set showFieldsList(value:Boolean):void
showFilterproperty 
showFilter:Boolean  [write-only]


Implementation
    public function set showFilter(value:Boolean):void
showGrandTotalsproperty 
showGrandTotals:Boolean  [write-only]


Implementation
    public function set showGrandTotals(value:Boolean):void
showHeadersproperty 
showHeaders:Boolean  [write-only]


Implementation
    public function set showHeaders(value:Boolean):void
showReportFilterproperty 
showReportFilter:Boolean  [write-only]


Implementation
    public function set showReportFilter(value:Boolean):void
showTotalsproperty 
showTotals:Boolean  [write-only]


Implementation
    public function set showTotals(value:Boolean):void
sortingproperty 
sorting:Boolean  [write-only]

The sorting property lets you enable or disable the data sorting feature.

The default value is true.


Implementation
    public function set sorting(value:Boolean):void
styleSheetNameproperty 
styleSheetName:String  [write-only]

The styleSheetName property lets you define the URL to CSS file to apply the skin.

Skins and visual appearance can be controlled with easy-to-edit CSS and images.


Implementation
    public function set styleSheetName(value:String):void

See also

swfFilePathproperty 
swfFilePath:String  [write-only]

The swfFilePath property lets you define the path to resource files, such as assets.swf, styles, skins etc.

If Assets.swf is not located in root directory, specify the path to them.

The default value is "".


Implementation
    public function set swfFilePath(value:String):void
thousandsSeparatorproperty 
thousandsSeparator:String  [write-only]

The thousandsSeparator property is one of the number formatting properties and it lets you define the thousands separator for data cell rendering.

Default value is space


Implementation
    public function set thousandsSeparator(value:String):void

See also

viewTypeproperty 
viewType:String  [write-only]

The viewType property lets you define the view type: show Pivot Grid or selected chart.

By default or incorrect parameter case, Pivot Grid will be shown.


Implementation
    public function set viewType(value:String):void

See also

zoomproperty 
zoom:Number  [write-only]

Zooms Grid


Implementation
    public function set zoom(value:Number):void

See also

Constructor Detail
FlexPivotComponent()Constructor
public function FlexPivotComponent()

Constructor.

Method Detail
addDataArray()method
public function addDataArray(array:Array):void

Adds dynamically multiple data rows to the data source.

Parameters

array:Array — data rows

addDataRecord()method 
public function addDataRecord(object:Object):void

Adds dynamically one data record to the data source.

Parameters

object:Object — Data record


Example
             var dataRecord:Object = {"[Country].[Country]": "Australia", "[Product].[Color]": "red", "[Product].[Category]": "Car", "[Measures].[Price]": 123};
             pivot.addDataRecord(dataRecord);
             
addDimension()method 
public function addDimension(uniqueName:String, caption:String):void

Adds dynamically Dimension to the data source.

Parameters

uniqueName:String — Dimension unique name
 
caption:String — Dimension caption

addFormat()method 
public function addFormat(format:FormatValueObject, measureName:String):void

deprecated Use setFormat() Sets the formatting for cells.

You can format all cell or only concrete meusere cell, if specify measureName parameter

Parameters

format:FormatValueObject — the class style used by this component to format object
 
measureName:String — optional parameter. Specify concrete measure to format

See also

addHierarchy()method 
public function addHierarchy(dimensionUniqueName:String, uniqueName:String, caption:String):void

Adds dynamically Hierarchy to Dimension in the data source.

Parameters

dimensionUniqueName:String — Dimension unique name for adding Hierarchy. If there is no Dimension with such unique name, error is thrown.
 
uniqueName:String — Hierarchy unique name
 
caption:String — Hierarchy caption

addMeasure()method 
public function addMeasure(uniqueName:String, caption:String, aggregation:String, format:String):void

Adds dynamically Measure to the data source.

Parameters

uniqueName:String — Measure unique name
 
caption:String — Measure caption
 
aggregation:String
 
format:String

clear()method 
public function clear():void

Clears all data and views; Pivot Grid, Charts and Fields List become empty.

clearFilter()method 
public function clearFilter(hierarchyName:String):void

Clears the filter for hierarchy by hierarchyName.

Parameters

hierarchyName:String — is name of hierarchy.

clearReport()method 
public function clearReport():void

Clears only view, such as Pivot Grid and Charts.

closeFieldsList()method 
public function closeFieldsList():void

Closes Fields List.

See also

collapseAllData()method 
public function collapseAllData():void

Collapses all dimensions on the grid and on charts

See also

connectTo()method 
public function connectTo(params:Object):void

Connects to the data source. It can be CSV provider, MS OLAP or Mondrian.

Parameters

params:Object — Object. CSV sample connectTo({dataSourceType: 'CSV', filename: 'data/csv/arabic.csv'}) MS OLAP sample connectTo({dataSourceType: 'MSOLAP', dataSourceInfo: 'Provider=MSOLAP; Data Source=extranet;', catalog: 'Adventure Works DW Standard Edition', cube: 'Adventure Works', proxyUrl: 'http://olap.flexmonster.com/olap/msmdpump.dll'}) Mondrian sample connectTo({dataSourceType: 'Mondrian', dataSourceInfo: 'Provider=Mondrian;DataSource=MondrianFoodMart;', catalog: 'FoodMart', cube: 'Sales', proxyUrl: 'http://olap.flexmonster.com:8080/mondrian/xmla'})

drawCell()method 
public function drawCell(cell:PivotGridCellRenderer):void

Redraws concrete cell on the grid

Parameters

cell:PivotGridCellRenderer — PivotGridCellRenderer

expandAllData()method 
public function expandAllData():void

Expands all dimensions on the grid and on charts

See also

expandData()method 
public function expandData(value:Boolean = true):void

deprecated

Parameters

value:Boolean (default = true) — can be true (to expand) or false (to collapse)

See also

export()method 
public function export(type:String, exportOptions:ExportOptions = null, callbackHandler:Function = null):void

Exports Grid or Chart to preferred format.

Parameters

type:String — ExportType is an export type, see possible values in appropriate class below
 
exportOptions:ExportOptions (default = null) — ExportOptions is for possible export options
 
callbackHandler:Function (default = null) — Function is for CSV export type only. It is called with data:String parameter (raw CSV data) when CSV data are ready to be returned.

See also

getAllHierarchies()method 
public function getAllHierarchies():Array

Returns all hierarchies.

Returns
Array — Array of objects with hierarchy caption, and uniqueName
getAllMeasures()method 
public function getAllMeasures():Array

Returns all measures.

Returns
Array — Array of objects with measure caption, name, uniqueName, availableAggregations, and aggregation selected
getCell()method 
public function getCell(rowIdx:int, colIdx:int):PivotGridCellRenderer

Gets the cell object by row and column indexes.

Parameters

rowIdx:int — Row index
 
colIdx:int — Column index

Returns
PivotGridCellRenderer — PivotGridCellRenderer

See also

getColumns()method 
public function getColumns():Array

Returns the hierarchies selected as columns for the report.

Returns
Array — Array of objects with hierarchy caption, and uniqueName
getFilter()method 
public function getFilter(hierarchyName:String):Array

Returns the filter for hierarchy by hierarchyName.

Parameters

hierarchyName:String — hierarchy name string

Returns
Array — Array of objects with member caption, uniqueName, id, and hierarchyName
getFormat()method 
public function getFormat(measureName:String):FormatValueObject

Returns the formatting for the measure by measure name.

Parameters

measureName:String

Returns
FormatValueObject — FormatValueObject

See also

getLocalizedLabels()method 
public function getLocalizedLabels():Object

Returns an object which represents current localization. The object contains pairs of key and value of all localized labels.

Returns
Object

See also

getMeasures()method 
public function getMeasures():Array

Returns the measures selected for the report.

Returns
Array — Array of objects with measure caption, name, uniqueName, availableAggregations, and aggregation selected
getMembers()method 
public function getMembers(hierarchyName:String, callbackHandler:Function = null):Array

Gets all members of hierarchy by hierarchy name.

Parameters

hierarchyName:String — hierarchy name string
 
callbackHandler:Function (default = null) — Function. It is used for asynchronous response which can be with OLAP data source if the hierarchy was not loaded previously.

Returns
Array — Array of objects with member caption, uniqueName, and hierarchyName
getPages()method 
public function getPages():Array

Returns the hierarchies selected as pages for the report.

Returns
Array — Array of objects with hierarchy caption, and uniqueName
getRows()method 
public function getRows():Array

Returns the hierarchies selected as rows for the report.

Returns
Array — Array of objects with hierarchy caption, and uniqueName
getSelectedCell()method 
public function getSelectedCell():PivotGridCellRenderer

Gets selected cell

Returns
PivotGridCellRenderer — PivotGridCellRenderer

See also

getSort()method 
public function getSort(hierarchyName:String):String

Returns the sort type for hierarchy by hierarchyName.

Parameters

hierarchyName:String — hierarchy name string

Returns
String — sort type String
getValue()method 
public function getValue(rowIdx:int, colIdx:int):Number

Gets the cell value by row and column indexes.

Parameters

rowIdx:int — Row index
 
colIdx:int — Column index

Returns
Number — Cell value
load()method 
public function load():void

Starts loading data to FlexPivotComponent and applying the report.

Before calling this function, set proxyUrl, dataSourceInfo, catalog, cube (MS Analysis Services or Mondrian OLAP server version) or filename (CSV version). If no source or incorrent URL specified, grid takes no changes.

See also

openFieldsList()method 
public function openFieldsList():void

Opens Fields List.

See also

print()method 
public function print():void

Prints Grid via OS print manager.

removeSelection()method 
public function removeSelection():void

Removes selection on the grid

save()method 
public function save(filename:String, destinationType:String = server, callbackHandler:Function = null, url:String):void

Saves a report. The report can be saved to local computer, to server or to clipboard as XML file.

Parameters

filename:String — is a name of report XML file.
 
destinationType:String (default = server) — String that defines DestinationType. It can be 'file', 'server' or 'clipboard'. Default value is DestinationType.SERVER.
 
callbackHandler:Function (default = null) — optional callback handler. Default value is null.
 
url:String — save report url. Default value is empty String.

See also

saveReport()method 
public function saveReport(url:String, name:String = report.xml, callbackHandler:Function = null, destinationType:String = server):void

deprecated Saves the report.

Parameters

url:String — save report url
 
name:String (default = report.xml) — optional report name. Default value is 'report.xml'
 
callbackHandler:Function (default = null) — optional callback handler. Default value is null
 
destinationType:String (default = server) — can be 'file', 'server' or 'clipboard'. Default value is 'server'

See also

setActualSize()method 
override public function setActualSize(newWidth:Number, newHeight:Number):void

Parameters

newWidth:Number
 
newHeight:Number

setBottomX()method 
public function setBottomX(hierarchyName:String, num:int, measureName:String):void

Sets the Bottom X filter for hierarchy by hierarchyName, X, and measure.

Parameters

hierarchyName:String — hierarchy name string
 
num:int — amount of filtered items
 
measureName:String — identifies the measure on which Bottom X filter will be applied

See also

setChartTitle()method 
public function setChartTitle(value:String):void

Sets the title for charts in run time.

Parameters

value:String — the charts title

setColumnWidth()method 
public function setColumnWidth(colIdx:int, width:int):void

The autoLoad property defines whether the report will be loaded automatically after the component initialization or the report will be loaded only after the method load() call.

If true the data will be loaded after FlexPivotComponent initialization. If false, the data load will be started only after the method load() call.

Parameters

colIdx:int
 
width:int

See also

setFilter()method 
public function setFilter(hierarchyName:String, items:Array):void

Sets the filter for hierarchy by hierarchyName.

Parameters

hierarchyName:String — hierarchy name string
 
items:Array — Array of objects with member caption, uniqueName, id, and hierarchyName

setFormat()method 
public function setFormat(format:FormatValueObject, measureName:String):void

Sets the formatting for cells.

You can format all cell or only concrete meusere cell, if specify measureName parameter

Parameters

format:FormatValueObject — FormatValueObject. It is used by this component to format cells.
 
measureName:String — optional parameter. Specify concrete measure to format

See also

setGridTitle()method 
public function setGridTitle(value:String):void

Sets the title for grid in run time.

Parameters

value:String — the grid title

setLocalizedLabels()method 
public function setLocalizedLabels(labels:Object):void

Sets a localization.

Parameters

labels:Object — is an object which contains pairs of key and value for any amount of localized labels.

See also

setRowHeight()method 
public function setRowHeight(rowIdx:int, height:int):void

Parameters

rowIdx:int
 
height:int

setSort()method 
public function setSort(hierarchyName:String, sortType:String):void

Sets the sort type for hierarchy by hierarchyName.

Parameters

hierarchyName:String — hierarchy name string
 
sortType:String — sort type String

setStyleSheet()method 
public function setStyleSheet(value:String):void

Applies the skin loaded from the URL to CSS file.

This method can be called after the component initialization.

Parameters

value:String — CSS file URL

See also

setTopX()method 
public function setTopX(hierarchyName:String, num:int, measureName:String):void

Sets the Top X filter for hierarchy by hierarchyName, X, and measure.

Parameters

hierarchyName:String — hierarchy name string
 
num:int — amount of filtered items
 
measureName:String — identifies the measure on which Top X filter will be applied

See also

showCharts()method 
public function showCharts(type:String):void

Switches to Charts view, default chart type is "bar".

This method can be called after the component initialization.

Parameters

type:String — is a chart type

See also

showGrid()method 
public function showGrid():void

Switches to Grid view.

This method can be called after the component initialization.

See also

sortValues()method 
public function sortValues(axisName:String, type:String, tuple:Array, measureName:String):void

Sorts values.

Parameters

axisName:String — String. It can be "rows" or "columns"
 
type:String — sort type String
 
tuple:Array — Array
 
measureName:String — identifies the measure on which sorting will be applied

Event Detail
fieldsListClose Event

Dispatched when fields list is closed

filterOpen Event  

Dispatched when a filter icon is pressed

See also

gridMouseClick Event  

Dispatched when a user presses and releases the main button of a pointing device over the defined grid cell.

See also

pivotCreationComplete Event  

Dispatched when pivot is created and is ready to receive data.

renderComplete Event  

Dispatched when the rendering of pivot grid or chart has been finished.

updateComplete Event  

Dispatched when data are received and updated.