EnumSecurityClasses

Returns the labels and internal IDs of all the security classes in the current Financial Management application. The arrays have a one-to-one correspondence.

Syntax

<HFMwSecurity>.EnumSecurityClasses pvaralIDs, pvarabstrSecurityClasses

Argument

Description

pvaralIDs

Returns an array of security class IDs.

Output argument.

pvarabstrSecurityClasses

Returns an array of security class labels.

Tip:

The array items are returned in alphabetical order, with [Default] always the first item.

Output argument.

Example

The following example prints the labels of an application’s security classes to the browser.

Sub printSecurityNames()
Dim cHFMSecurity, vaIDs, vaClasses
Set cHFMSecurity = Server.CreateObject("Hyperion.HFMwSecurity")
'g_cHFMSession is a previously set HFMwSession object
cHFMSecurity.SetWebSession g_cHFMSession
cHFMSecurity.EnumSecurityClasses vaIDs, vaClasses
For i = 0 to uBound(vaClasses)
  Response.Write "<p>" & vaClasses(i) & "</p>"
Next
End Sub