DefaultView

Gets the default view for the current Scenario member or for a specified scenario member. This function can be used in these types of rules:

  • Calculation

  • Translation

  • Consolidation

  • Allocation

Syntax

HS.Scenario.DefaultView("Scenario")
HS.Scenario.DefaultView("")

Note:

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

where Scenario is the name of a valid Scenario member.

Return Value

A string that contains the default view for the specified scenario. Valid values are YTD and Periodic.

Example

In this example, if the default view for the Actual scenario is YTD, then statements between the If...Then and End If statements are executed.

If HS.Scenario.DefaultView("Actual") = "YTD" Then
  ...
End If