Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.olap 

OLAPAttribute  - AS3 Flex

Pacchettomx.olap
Classepublic class OLAPAttribute
EreditarietàOLAPAttribute Inheritance OLAPHierarchy Inheritance OLAPElement Inheritance Proxy
Implementa IOLAPAttribute

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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.

Sintassi MXMLexpandedNascondi sintassi MXML

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

  <mx:OLAPAttribute
    Properties
    dataField=""
  />
 
  

Proprietà MXML predefinitaelements

Altri esempi

Elementi API correlati



Proprietà pubbliche
 ProprietàDefinito da
 InheritedallMemberName : String
The name of the all member of the hierarchy.
OLAPHierarchy
 Inheritedchildren : IList
[sola lettura] The children of the all member, as a list of IOLAPMember instances.
OLAPHierarchy
  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
[sola lettura] The default member of the hierarchy.
OLAPHierarchy
 Inheriteddimension : IOLAPDimension
The dimension to which this element belongs.
OLAPElement
 InheriteddisplayName : String
The name of the OLAP element, as a String, which can be used for display.
OLAPElement
  displayNameFunction : Function
A callback function that returns the display name of a member element.
OLAPAttribute
  hasAll : Boolean
[override] Contains true because attributes are assumed to be aggregatable and all member is present.
OLAPAttribute
  members : IList
[override] [sola lettura] All members of all the levels that belong to this hierarchy, as a list of IOLAPMember instances.
OLAPAttribute
 Inheritedname : String
[override] User defined name of this hierarchy.
OLAPHierarchy
 InheriteduniqueName : String
[sola lettura] The unique name of the OLAP element in the cube.
OLAPElement
Metodi pubblici
 MetodoDefinito da
  
OLAPAttribute(name:String = null, displayName:String = null)
Constructor.
OLAPAttribute
 Inherited
Returns the level with the given name within the hierarchy.
OLAPHierarchy
 Inherited
Returns the member with the given name within the hierarchy.
OLAPHierarchy
 Inherited
Returns the unique name of the element.
OLAPElement
Descrizione delle proprietà

dataCompareFunction

proprietà
public var dataCompareFunction:Function

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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.

dataField

proprietà 
dataField:String

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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



Implementazione
    public function get dataField():String
    public function set dataField(value:String):void

dataFunction

proprietà 
dataFunction:Function

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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 example, 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 example, 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 example returns the age group for each age value in the flat data:

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



Implementazione
    public function get dataFunction():Function
    public function set dataFunction(value:Function):void

displayNameFunction

proprietà 
public var displayNameFunction:Function

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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 example 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);     
          }

hasAll

proprietà 
hasAll:Boolean[override]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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



Implementazione
    override public function get hasAll():Boolean
    override public function set hasAll(value:Boolean):void

members

proprietà 
members:IList  [sola lettura] [override]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

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.



Implementazione
    override public function get members():IList
Descrizione della funzione di costruzione

OLAPAttribute

()Funzione di costruzione
public function OLAPAttribute(name:String = null, displayName:String = null)

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Constructor.

Parametri
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.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.