The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
RolandWeiss
1 year agoNew Contributor II
Column suppression
Hi, we would like to show the periods based on on the "Number Of No Input Periods Per Workflow Unit" Scenario setting.
Suppress if "No Input" Is that possible? Roland Weiss
- 1 year ago
There are a couple ways you should be able to handle, like everything in OS (more than one way). In the column header format you can use an XFBR string to return Column Visible = False based on an XFBR string of scenario and time.
Or a second way is shown below. In this way you are figuring out which columns are Actual data vs Forecast data to show on cube views.
In both cases, an XFBR string is used.
If args.FunctionName.XFEqualsIgnoreCase("ActPeriods") Then ' XFBR(XCLR_XFBRString, ActPeriods, CurrScenario = |WFScenario|, wfYear= |WFYear|) Dim CurrScenario As String = args.NameValuePairs.XFGetValue("CurrScenario") Dim wfYear As Integer = args.NameValuePairs.XFGetValue("wfYear") Dim wfScenarioId As Integer = ScenarioDimHelper.GetIdFromName(si, CurrScenario) ' brapi.ErrorLog.LogMessage(si, "Scenario = " & CurrScenario & " Year = " & wfYear ) Dim NoInputPeriods As Integer = BRApi.Finance.Scenario.GetWorkflowNumNoInputTimePeriods(si, wfScenarioId) ' brapi.ErrorLog.LogMessage(si, "Scenario = " & CurrScenario & " Year = " & wfYear & " NoInputPeriods = " & NoInputPeriods) If NoInputPeriods <> 0 Then Return "T#" & wfYear & "M" & NoInputPeriods.tostring & ".AllPriorInYearInclusive" Else Return "T#" & wfYear & ".Base" End If End If
T_Kress
OneStream Employee
1 year agoThere are a couple ways you should be able to handle, like everything in OS (more than one way). In the column header format you can use an XFBR string to return Column Visible = False based on an XFBR string of scenario and time.
Or a second way is shown below. In this way you are figuring out which columns are Actual data vs Forecast data to show on cube views.
In both cases, an XFBR string is used.
If args.FunctionName.XFEqualsIgnoreCase("ActPeriods") Then
' XFBR(XCLR_XFBRString, ActPeriods, CurrScenario = |WFScenario|, wfYear= |WFYear|)
Dim CurrScenario As String = args.NameValuePairs.XFGetValue("CurrScenario")
Dim wfYear As Integer = args.NameValuePairs.XFGetValue("wfYear")
Dim wfScenarioId As Integer = ScenarioDimHelper.GetIdFromName(si, CurrScenario)
' brapi.ErrorLog.LogMessage(si, "Scenario = " & CurrScenario & " Year = " & wfYear )
Dim NoInputPeriods As Integer = BRApi.Finance.Scenario.GetWorkflowNumNoInputTimePeriods(si, wfScenarioId)
' brapi.ErrorLog.LogMessage(si, "Scenario = " & CurrScenario & " Year = " & wfYear & " NoInputPeriods = " & NoInputPeriods)
If NoInputPeriods <> 0 Then
Return "T#" & wfYear & "M" & NoInputPeriods.tostring & ".AllPriorInYearInclusive"
Else
Return "T#" & wfYear & ".Base"
End If
End If
- RolandWeiss1 year agoNew Contributor II
Brilliant, many thanks for your help!
Related Content
- 2 years ago
- 3 years ago