((Apenas para componentes do Flex Data Visualization))
Pacotemx.olap
Classepublic class OLAPAttribute
HerançaOLAPAttribute Inheritance OLAPHierarchy Inheritance OLAPElement Inheritance Proxy Inheritance Object
Implementa IOLAPAttribute

The OLAPAttribute class represents a single attribute of an OLAPDimension. Use this class to associate a field of the flat data that is used to populate an OLAP cube with a level of the dimension.

Sintaxe em MXMLexpandedHide MXML Syntax

The <mx:OLAPAttribute> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:

  <mx:OLAPAttribute
    Properties
    dataField=""
  />
 
  

Veja também

mx.olap.OLAPDimension
mx.olap.OLAPLevel


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedchildren : IList
[read-only]
OLAPHierarchy
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  dataCompareFunction : Function
User supplied callback function that would be used to compare the data elements while sorting the data.
OLAPAttribute
  dataField : String
The field of the input data set that provides the data for this OLAPAttribute instance.
OLAPAttribute
  dataFunction : Function
A callback function that returns the actual data for the attribute.
OLAPAttribute
 InheriteddefaultMember : IOLAPMember
[read-only]
OLAPHierarchy
 Inheriteddimension : IOLAPDimension
OLAPElement
 InheriteddisplayName : String
OLAPElement
  displayNameFunction : Function
A callback function that returns the display name of a member element.
OLAPAttribute
  hasAll : Boolean
Contains true becasue attributes are assumed to be aggregatable and all member is present.
OLAPAttribute
  members : IList
[read-only] All members of all the levels that belong to this hierarchy, as a list of IOLAPMember instances.
OLAPAttribute
 Inheritedname : String
User defined name of this hierarchy.
OLAPHierarchy
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 InheriteduniqueName : String
[read-only]
OLAPElement
Propriedades Protegidas
 PropriedadeDefinido por
  _dataFunction : Function
OLAPAttribute
Métodos Públicos
 MétodoDefinido por
  
OLAPAttribute(name:String = null, displayName:String = null)
Constructor.
OLAPAttribute
 Inherited
OLAPHierarchy
 Inherited
OLAPHierarchy
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the unique name of the element.
OLAPElement
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes da propriedade
_dataFunctionpropriedade
protected var _dataFunction:Function
dataCompareFunctionpropriedade 
public var dataCompareFunction:Function

User supplied callback function that would be used to compare the data elements while sorting the data. By default the data members would be compared directly.

dataFieldpropriedade 
dataField:String  [read-write]

The field of the input data set that provides the data for this OLAPAttribute instance.


Implementação
    public function get dataField():String
    public function set dataField(value:String):void
dataFunctionpropriedade 
dataFunction:Function  [read-write]

A callback function that returns the actual data for the attribute. Use this callback function to return computed data based on the actual data. For exemplo, you can return the month name as a String from actual date that represents the month as a number. Or, you can calculate a value. For exemplo, your input data contains the ages of people, such as 1, 4, 9, 10, 12, 15, or 20. Your callback function can return an age group that contains the age, as in 1-10, or 11-20.

The signature of the callback function is:

         function myDataFunction(rowData:Object, dataField:String):Object;
where rowData contains the data for the row of the input flat data, and dataField contains the name of the data field.

The function can return a String or a Number.

The following exemplo returns the age group for each age value in the flat data:

         private function ageGroupingHandler(rowData:Object, field:String):Object
         {
             return rowData[field] / 10;
         } 


Implementação
    public function get dataFunction():Function
    public function set dataFunction(value:Function):void
displayNameFunctionpropriedade 
public var displayNameFunction:Function

A callback function that returns the display name of a member element. Flex calls this function for each member added to the OLAPAttribute instance.

The function signature is:

          function myDisplayNameFunction(memberName:String):String

where memberName contains the name of the element.

The function returns the display name of the element.

The following exemplo converts a numeric group name, such as 1,2, or 3 into display names "0-9", "10-19":

          private function myDispFunction(name:String):String
          {
              var value:int = parseInt(name);
              return String((value)0 + " - ") + String((value+1)0-1);     
          }

hasAllpropriedade 
hasAll:Boolean  [read-write]

Contains true becasue attributes are assumed to be aggregatable and all member is present.


Implementação
    public function get hasAll():Boolean
    public function set hasAll(value:Boolean):void
memberspropriedade 
members:IList  [read-only]

All members of all the levels that belong to this hierarchy, as a list of IOLAPMember instances. The returned list might represent remote data and therefore can throw an ItemPendingError.


Implementação
    public function get members():IList
Detalhes do construtor
OLAPAttribute()Construtor
public function OLAPAttribute(name:String = null, displayName:String = null)

Constructor.

Parâmetros
name:String (default = null) — The name of the OLAPAttribute instance. You use this parameter to associate the OLAPAttribute instance with an OLAPLevel instance.
 
displayName:String (default = null) — The name of the attribute, as a String, which can be used for display.