Forum Discussion

Filip's avatar
Filip
New Contributor II
24 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,

4 Replies

  • 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
    • Filip's avatar
      Filip
      New Contributor II

      Hi, 

      Thanks for your reply.

      I cant really get it to work. I have a combo box, but its is not showing the value of the parameter in the box. Just the True False in the drop down list.

       

       

      • chris-kenworthy's avatar
        chris-kenworthy
        New Contributor

        Filip,

        Did you get this figured out?  If not, please include screenshots of the combo box and parameter properties, and a screenshot of your combo box at run-time, and elaborate on what you want the end user to see.

        I don't think I fully understand what you are looking for in the combo box.  

        Chris