Forum Discussion

MarcusH's avatar
MarcusH
Contributor III
2 years ago

Set the value of a radio button on a dashboard

Hi All I am updating the Admin Consolidations Dashboard (ADM) so that only some users can execute a Force Consolidate. I can hide the radio button group if the user does not have access but I am str...
  • RobbSalzmann's avatar
    2 years ago

    In a DashboardExtender rule you can set the selected radio button in your RBG having values (Calc, Consol, Force) in a parameter called MyRadioButtonGroupParam to consol by:

     

    Dim taskResult As XFSelectionChangedTaskResult = New XFSelectionChangedTaskResult() With {
        .IsOK = True,
        .ShowMessageBox = False,
        .Message = "",
        .ChangeSelectionChangedUIActionInDashboard = False,
        .ChangeSelectionChangedNavigationInDashboard = False,
        .ChangeCustomSubstVarsInDashboard = true,
        .ChangeCustomSubstVarsInLaunchedDashboard = False
    }
    
    taskResult.ModifiedCustomSubvars("MyRadioButtonGroupParam") = "Consol"
    
    Return taskResult

     

    This will change the selected radio to the "Consol" item.

    Update the UI using the properties of the control used to call this code: