Hey everyone, I have a dashboard that works well on its own. One button on it directly manipulates a parameter, as such:
var view = this.parentView.control; var impsParam = view.getViewParameterByName("impsParam"); impsParam.parameterValue.clearTokens(); impsParam.parameterValue.clearValues(); impsParam.parameterValue.lowerBoundaryValue = 0; impsParam.parameterValue.upperBoundaryValue = 0; impsParam.invalidateParameterValueLastModifiedTime(); impsParam.refreshAllAdapters();
However, I’m now embedding this dash into a template cell of another master dashboard. Now, this button doesn’t work.
I’m guessing I need to alter the
view in some way, right? Because now the
parentView is no longer the correct handle?
ADDENDUM: when looking in console, clicking these buttons throws no errors. I even went in and verified that the parameter value successfully changes. However, the filter does not respond. And again, it DOES work when I do it on the standalone (non-embedded) version of the dash.