SecurityClass

Gets the security class for the specified member. This function can be used in these types of rules:

  • Calculation

  • Translation

  • Consolidation

  • Allocation

Syntax

HS.<Object>.SecurityClass("Element")
HS.<Object>.SecurityClass("")
HS.<Object>.SecurityClass(Var1)
HS.Custom(Dimension).SecurityClass("Element")

Note:

Use a blank string ( "" ) to apply this function to the current member.

Table 11-45 Syntax for SecurityClass Function

Parameter Description

<Object>

One of these object keywords:

  • Account

  • Scenario

  • Entity

  • Parent

  • Custom1...4

  • Custom (Custom Dimension Label)

Element

Depending on the object selected, name of a valid member of one of these dimensions:

  • Account

  • Scenario

  • Entity

  • Custom1...4

  • Custom

Var1

A VisualBasic variable.

Return Value

The name of the security class assigned to the specified member.

Example

In this example, if Class1 is the security class assigned to the Cash account, then statements between the If...Then and End If statements are executed:

If HS.Account.SecurityClass("Cash") = "Class1" Then
  ...
End If
If HS.Custom(Dimension).SecurityClass(Member) Then
...
End If