Forum Discussion

Filip's avatar
Filip
New Contributor II
4 days ago

How do I change a parameter value in a dashboard?

Hi everyone,

I have a business rules that is triggered through a dashboard. This Business rule is looking at a True/False parameter.

How do I add the parameter to the dashboard and with a dropdown list showing the valid values (true/false) that can be used to save the value to the parameter?

Thanks in advance,

1 Reply

  • Chris-B's avatar
    Chris-B
    New Contributor III
    Hi Filip,
     
    You can create a combo box component and attach a parameter in the Bound Parameter property field. The parameter can be a delimited list parameter with display and value items True,False.

    The selected parameter value can be passed to the business rule with the Selection Changed Server Task Arguments e.g. {Boolean_SolutionHelper}{ReturnValueTest}{Boolean=[|!prmTrueFalse!|]}

    In your business rule you can set a boolean as per example below:
    If args.FunctionName.XFEqualsIgnoreCase("ReturnValueTest") Then
    Dim myBoolean As Boolean = args.NameValuePairs("Boolean")
    End If