DanTenneco
3 years agoNew Contributor II
Using Global time Variable
Hello All,
I am trying to use the Global Time to pull reporting columns using the UD8 dimensionality but the values will not return.
Dim ScenarioMth As String = api.Pov.Scenario.Name
Dim gbTimeName As String = BRApi.Workflow.General.GetGlobalTime(si)
Dim objTimeMemberSubComponents As TimeMemberSubComponents = BRApi.Finance.Time.GetSubComponentsFromName(si, gbTimeName)
Dim gbMonth As String = objTimeMemberSubComponents.Month.ToString
If gbMonth.Length < 2 Then
gbMonth = "0" & gbMonth
End If
Select Case gbMonth
Case 1
If ScenarioMth = "FCST" Then
Return api.Data.GetDataCell("U8#None")
Else
Return api.Data.GetDataCell("S#FCST12:U8#None")
End If
End Select