Enumerate the IDs, names, and aliases of an application’s dimensions. These items are returned in arrays, the items of which have a one-to-one correspondence with each other.
<HFMwMetadata>.EnumDimensions pvaravarlIDs, pvaravarbstrNames, pvaravarbstrAliasesReturns an array of IDs for the application’s dimensions. Valid values are represented by the Dimension ID constants in the HFMConstants type library. For details, see Dimension ID Constants. | |
Returns an array of aliases for the application’s dimensions. If a dimension does not have an alias, the corresponding array item will contain the dimension name. |
This example prints the names and aliases of an application’s dimensions to the browser. Note that the application name is also printed, using the HFMwSession property applicationName.
Dim cHFMMetadata, vaIDs, vaNames, vaAliases
'g_cHFMSession is an HFMwSession object reference
Set cHFMMetadata = g_cHFMSession.metadata
cHFMMetadata.EnumDimensions vaIDs, vaNames, vaAliases
Response.Write "<h1>" & g_cHFMSession.applicationName & _
"Application Dimensions and Aliases</h1>"
For i = lBound(vaIDs) to uBound(vaIDs)
Response.Write "<p><b>" & vaNames(i) & " dimension alias: " & _
"</b>" & " " & vaAliases(i) & "</p>"
Next