Packagecom.flexmonster.pivot.vo
Classpublic class MeasureValueObject
InheritanceMeasureValueObject Inheritance Object

The MeasureValueObject class describes measure.



Public Properties
 PropertyDefined By
  active : Boolean
Boolean value that defines whether the calculated measure will be added to the list of available values but not selected (false) or will be selected for the report (true).
MeasureValueObject
  aggregation : String
Type of aggregation function that will be applied to the measure ("sum", "count", "distinctcount", "average", "product", "min", "max", "percent", "percentofcolumn", "percentofrow", "index").
MeasureValueObject
  availableAggregations : Array
Array of strings that represents the list of aggregation functions which can be applied to the current measure.
MeasureValueObject
  availableAggregationsCaptions : Array
[read-only] Array of strings that represents the list of aggregation captions.
MeasureValueObject
  calculated : Boolean
Boolean value that defines whether measure is calculated.
MeasureValueObject
  caption : String
Measure caption.
MeasureValueObject
  folder : String
Measure folder.
MeasureValueObject
  format : String
Number formatting name.
MeasureValueObject
  formula : String
String that represents the formula that can contain the following operations: +, -, /; other measures can be addressed using measure unique name and aggregation function, for example sum("[Measures].[Price]") or max("[Measures].[Order]").
MeasureValueObject
  grandTotalCaption : String
Measure grand total caption.
MeasureValueObject
  individual : Boolean
MeasureValueObject
  originalCaption : String
Measure original caption
MeasureValueObject
  type : int = 1
Measure type.
MeasureValueObject
  uniqueName : String
Measure unique name, this property will be used as an identifier for the measure inside Pivot component and as the identifier to remove calculated measure via API.
MeasureValueObject
Public Methods
 MethodDefined By
  
MeasureValueObject(uniqueName:String, caption:String, aggregation:String, format:String, type:int = 1)
MeasureValueObject
  
[static] Convert object to MeasureValueObject class
MeasureValueObject
  
getLocalizedCaption(aggregation:String, originalCaption:String):String
[static]
MeasureValueObject
  
toObject():Object
Convert MeasureValueObject to Object
MeasureValueObject
Property Detail
activeproperty
public var active:Boolean

Boolean value that defines whether the calculated measure will be added to the list of available values but not selected (false) or will be selected for the report (true).

aggregationproperty 
public var aggregation:String

Type of aggregation function that will be applied to the measure ("sum", "count", "distinctcount", "average", "product", "min", "max", "percent", "percentofcolumn", "percentofrow", "index"). If it is calculated measure, it will be "none".

availableAggregationsproperty 
availableAggregations:Array

Array of strings that represents the list of aggregation functions which can be applied to the current measure. If it is calculated measure, it will be [].


Implementation
    public function get availableAggregations():Array
    public function set availableAggregations(value:Array):void
availableAggregationsCaptionsproperty 
availableAggregationsCaptions:Array  [read-only]

Array of strings that represents the list of aggregation captions. If it is calculated measure, it will be [].


Implementation
    public function get availableAggregationsCaptions():Array
calculatedproperty 
public var calculated:Boolean

Boolean value that defines whether measure is calculated.

captionproperty 
public var caption:String

Measure caption.

folderproperty 
public var folder:String

Measure folder.

formatproperty 
public var format:String

Number formatting name.

formulaproperty 
public var formula:String

String that represents the formula that can contain the following operations: +, -, /; other measures can be addressed using measure unique name and aggregation function, for example sum("[Measures].[Price]") or max("[Measures].[Order]"). Pivot supports the following aggregation functions for CSV data source: sum, count, average, product, min, max, percent.

grandTotalCaptionproperty 
public var grandTotalCaption:String

Measure grand total caption.

individualproperty 
public var individual:Boolean

originalCaptionproperty 
public var originalCaption:String

Measure original caption

typeproperty 
public var type:int = 1

Measure type. Default value is MeasureType.NUMBER.

See also

MeasureType
uniqueNameproperty 
public var uniqueName:String

Measure unique name, this property will be used as an identifier for the measure inside Pivot component and as the identifier to remove calculated measure via API.

Constructor Detail
MeasureValueObject()Constructor
public function MeasureValueObject(uniqueName:String, caption:String, aggregation:String, format:String, type:int = 1)

Constructor for MeasureValueObject class

Parameters
uniqueName:String
 
caption:String
 
aggregation:String
 
format:String
 
type:int (default = 1)
Method Detail
fromObject()method
public static function fromObject(object:Object):MeasureValueObject

Convert object to MeasureValueObject class

Parameters

object:Object — object

Returns
MeasureValueObject — MeasureValueObject object
getLocalizedCaption()method 
public static function getLocalizedCaption(aggregation:String, originalCaption:String):String

Parameters

aggregation:String
 
originalCaption:String

Returns
String
toObject()method 
public function toObject():Object

Convert MeasureValueObject to Object

Returns
Object — object