I have a dash with some buttons that unhide other dashboards in a subcanvas.
So when I click on the button to unhide a dash, I’d like to pass a value to a parameter IN that subcanvas’s dashboard.
I thought I knew how to do this, but even reading other posts here I don’t see one that addresses what I’m trying to do.
I’ve tried the classic script to assign a value, like this:
var view = this.parentView.control;
var state_ind_param = view.getViewParameterByName("parameter_name");
var new_value = dundas.context.currentSession.customAttributes[0].value.singleValue;
state_ind_param.parameterValue.clearTokens();
state_ind_param.parameterValue.clearValues();
state_ind_param.parameterValue.value = new_value;
state_ind_param.invalidateParameterValueLastModifiedTime();
state_ind_param.refreshAllAdapters();
It just cannot see the parameter on the subcanvas, so it fails. How do I make this work?