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.
<HsvData>.SetPhaseSubmissionGridForGivenScenarioPeriod lScenario, varalPeriodIDs, varalPhaseIDs, pvarbstrGroupInfo
Argument | Description |
---|---|
lScenario | Long (ByVal). The member ID of the Scenario dimension member. |
varalPeriodIDs | Long array (ByVal). The member IDs of the Period dimension members. |
varalPhaseIDs | Long array (ByVal). The phase IDs of the submission phases. |
pvarbstrGroupInfo | String array (ByVal). The IDs of the submission groups. |
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