Gets or sets an attribute for a given dimension.
To get or set an attribute for all dimensions, use AttrAll. |
<HFMwMbrSel>.AttrDim(lndxDim, lidAttr)
The ID of the dimension. Valid values are represented by the HFMConstants type library constants listed in Dimension ID Constants. | |
The ID of the attribute. Attribute IDs are represented by the HFMConstants type library constants listed in Point of View Attribute Constants. |
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