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

OSAdmin's avatar
OSAdmin
Icon for OneStream Employee rankOneStream Employee
5 years ago

Dashboard object with conditional formatting. To hide or make grey the object on the dashboard depends on conditions?

Originally posted by Evgeniy Galanzovskyi

3/11/2020

Example, make the Button not visible if WFPeriod is Jan.

1 Reply

  • OSAdmin's avatar
    OSAdmin
    Icon for OneStream Employee rankOneStream Employee
    Originally posted by Jon Golembiewski

    This is possible through an XFBR rule. Something like this should work:
    Else If args.FunctionName.XFEqualsIgnoreCase(""ButtonVisible"") Then
    'Pull in the workflow time
    Dim wfTime As String = args.SubstVarSourceInfo.WFTime
    'Check the condition and return the format value
    If wfTime.XFContainsgnoreCase(""Jan"") Then
    Return ""IsVisible = False""
    Else
    Return ""IsVisible = True""
    Then, you call the rule in the Button Component format property:
    End If