Excel Client:ElemAttribut: Difference between revisions

From CoPlanner 10
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
==[[Excel_Client:Functions_(Formulas)|Function]]==
==[[Excel_Client:Functions_(Formulas)|Function]]==


<span {{CoPFormel}}>ElemAttribut(DimensionName, Element, Attribut)</span>
<span {{CoPFormel}}>ElemAttribut(DimensionName, Element, AttributName)</span>


This [[Excel_Client:Functions_(Formulas)|function]] can be used to read an attribute of a dimension element (Dimension Manager, Windows Client). This function is volatile (it is executed every time the worksheet is calculated).  
This [[Excel_Client:Functions_(Formulas)|function]] can be used to read an attribute of a dimension element (Dimension Manager, Windows Client). This function is volatile (it is executed every time the worksheet is calculated).  
Line 16: Line 16:
|The element whose attribute is to be read.  
|The element whose attribute is to be read.  
|-
|-
|Attribut
|AttributName
|The name of the attribute (column name).
|The name of the attribute (column name).
|}
|}

Revision as of 10:07, 21 May 2015

Function

ElemAttribut(DimensionName, Element, AttributName)

This function can be used to read an attribute of a dimension element (Dimension Manager, Windows Client). This function is volatile (it is executed every time the worksheet is calculated).

Parameter Description
DimensionName The name of the dimension that contains the element.
Element The element whose attribute is to be read.
AttributName The name of the attribute (column name).

Example

ElemAttribut("Produkte";"Bikes";"vs_key")
returns 4001 (This value does not necessarily correspond to your model, and the Products dimension of your model does not necessarily contain the attribute vs_key.)

If one of the parameters is invalid (dimension not found, element not found, attribute not found), this will be indicated by the return value. For the meanings of the return values that may be displayed, please refer to Constants and Return Values.