Hi, I have created a script, which should set a parameter (date) to a specific value. The Parameter is passed to another Dashboard to set a date filter. Therefore I have used a click action with the script and a navigation action with a parameter passing.
It seems that I have a mistake in the script. It seems that the parameter is not changed at all.
// Get the parent view.
var parentView = this.parentView;
// Get the view parameters.
var viewParameter = this.parentView.control.getViewParameterByName(“Date”);
// Click Event
if (e.relatedData) {
// Get the cellset
var cellset = e.relatedData.metricSetBinding.dataResult.cellset;
var columnOrdinal = e.relatedData.columns[1];
var rowOrdinal = e.relatedData.rows[0];
var Datum = cellset.cells[columnOrdinal][rowOrdinal];
//Set Parameter
viewParameter.parameterValue = Datum;
}
viewParameter.refreshAllAdapters();
Thanks.