SetPhaseSubmissionGridForGivenScenarioPeriod

Assigns submission groups to the specified combinations of Scenario dimension member, Period dimension members, and submission phases. The Period member IDs, phase IDs, and submission group IDs are passed in arrays that have a one-to-one correspondence.

Syntax

<HsvData>.SetPhaseSubmissionGridForGivenScenarioPeriod lScenario, varalPeriodIDs, varalPhaseIDs, pvarbstrGroupInfo
ArgumentDescription
lScenarioLong (ByVal). The member ID of the Scenario dimension member.
varalPeriodIDsLong array (ByVal). The member IDs of the Period dimension members.
varalPhaseIDsLong array (ByVal). The phase IDs of the submission phases.
pvarbstrGroupInfoString array (ByVal). The IDs of the submission groups.

Example

For the specified scenario and periods, the following method assigns all submission groups to Phase 1.

Sub SetPhaseOneAllGroups(lScen As Long, laPers() As Long)
Dim laPhaseIds(0) As Long, saGroupInfo() As String
laPhaseIds(0) = 1
Dim cData As HsvData
'g_cSession represents an HsvSession instance
Set cData = g_cSession.Data
ReDim saGroupInfo(UBound(laPers))
For i = 0 To UBound(laPers)
    saGroupInfo(i) = "*"
Next i
cData.SetPhaseSubmissionGridForGivenScenarioPeriod lScen, laPers, _
   laPhaseIds, saGroupInfo
End Sub