I have a scenario to refresh the parameter hierarchy filter on the button click. Using this script I achieved the result. parameter value updated and applied on the chart.
var view = dundas.context.baseViewViewService.currentView
var myToken = new dundas.data.ParameterToken({
“caption”: “All”,
“id”: dundas.constants.ALL_TOKEN_DEFINITION_ID
});
var vp = view.control.getViewParameterByName(‘vp’)
vp.parameterValue.token = myToken;
vp.invalidateParameterValueLastModifiedTime()
vp.refreshAllAdapters()
The issue is I can’t see value “All” on the parameter hierarchy filter. after execution, it displayed the previous value which is an issue. Are there any ways to set the text “All” when this script will execute.