Forum Discussion
brookb
3 years agoNew Contributor
Unselect/Uncheck combo box selections
Is there a setting on the component or even a business rule that allows you to uncheck/unselect/reset a combo box to its original state? I would like it to reset and check the top member or a default...
- 3 years ago
yes, you can reset or set to specific value using Dashbaord Extender BR. see "RPTA_SolutionHelper" for examples. something like below:
'*********************************************************************************************************************************************
' PARAMETER COMPONENT SELECTION CHANGED EVENT HANDLERS
'*********************************************************************************************************************************************
Case Is = DashboardExtenderFunctionType.ComponentSelectionChangedIf (args.FunctionName.XFEqualsIgnoreCase("ValidateDatesForRefresh")) Then
Dim taskResult As New XFSelectionChangedTaskResulttaskResult.ModifiedCustomSubstVars.Add("DashboardToHide_RPTA", "9_NoFilterSelected_RPTAV")
taskResult.ModifiedCustomSubstVars.Add("ReportLabelHeight_RPTA", "*")
taskResult.ModifiedCustomSubstVars.Add("FilterLabelHeight_RPTA", "0")taskResult.ChangeCustomSubstVarsInDashboard = True
Return taskResult
Ashok
3 years agoNew Contributor III
yes, you can reset or set to specific value using Dashbaord Extender BR. see "RPTA_SolutionHelper" for examples. something like below:
'*********************************************************************************************************************************************
' PARAMETER COMPONENT SELECTION CHANGED EVENT HANDLERS
'*********************************************************************************************************************************************
Case Is = DashboardExtenderFunctionType.ComponentSelectionChanged
If (args.FunctionName.XFEqualsIgnoreCase("ValidateDatesForRefresh")) Then
Dim taskResult As New XFSelectionChangedTaskResult
taskResult.ModifiedCustomSubstVars.Add("DashboardToHide_RPTA", "9_NoFilterSelected_RPTAV")
taskResult.ModifiedCustomSubstVars.Add("ReportLabelHeight_RPTA", "*")
taskResult.ModifiedCustomSubstVars.Add("FilterLabelHeight_RPTA", "0")
taskResult.ChangeCustomSubstVarsInDashboard = True
Return taskResult
- Krishna3 years agoValued Contributor
Are you sure this is working ? I am not able to get it working. Can you share more details. I followed the same but it is not working.
- Krishna3 years agoValued Contributor
I answered my own question. I was passing the incorrect parameters. Param Name Vs ComboBox Name. Thanks.
Related Content
- 3 years ago
- 2 years ago