Attr

Gets or sets a given attribute’s value.

Attr is the HFMwMbrSelDim component’s default property. For example, in VBScript <HFMwMbrSelDim>(lidAttr) is the same as <HFMwMbrSelDim>.attribute(lidAttr).

Read-write.

Tip:

You can also set dimension attributes with the HFMwMbrSel component’s AttrAll and AttrDim properties.

Read-write.

Syntax

<HFMwMbrSelDim>.Attr(lidAttr)

Argument

Description

lidAttr

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

Input argument. Long subtype.

Example

The following example sets the Account dimension’s value to the member list [Hierarchy].

Dim cMbrSel, cMbrSelDim, sVal
Set cMbrSel = Server.CreateObject("Hyperion.HFMwMbrSel")
'g_cSession is an HFMwSession object reference
cMbrSel.SetWebSession g_cSession
Set cMbrSelDim = cMbrSel.dim(DIMENSIONACCOUNT)
sVal = cMbrSel.buildValue (WEBOM_MBRSEL_VALTYPE_LIST, "[Hierarchy]", "")
cMbrSelDim.Attr(WEBOM_MBRSEL_ID_VALUE) = sVal