AttrDim

Gets or sets an attribute for a given dimension.

Tip:

To get or set an attribute for all dimensions, use AttrAll.

Read-write.

Syntax

<HFMwMbrSel>.AttrDim(lndxDim, lidAttr)

Argument

Description

lndxDim

The ID of the dimension. Valid values are represented by the HFMConstants type library constants listed in Dimension ID Constants.

Input argument. Long subtype.

lidAttr

The ID of the attribute. Attribute IDs are represented by the HFMConstants type library constants listed in Point of View Attribute Constants.

Input argument. Long subtype.

Example

The following example changes the value attribute of the Entity dimension in the HFMwMbrSel instance to UnitedStates.Connecticut. buildValue builds the dimension value to which AttrDim is set.

Dim cMbrSel, sVal
Set cMbrSel = Server.CreateObject("Hyperion.HFMwMbrSel")
'g_cSession is an HFMwSession object reference
cMbrSel.SetWebSession g_cSession
sVal = cMbrSel.buildValue(WEBOM_MBRSEL_VALTYPE_MEMBER, "NewYork", _ 
  "UnitedStates")
cMbrSel.AttrDim(DIMENSIONENTITY, WEBOM_MBRSEL_ID_VALUE) = sVal