Filters remains with old values

Hello,

I have a cube with a placeholder inside for filtering some data. When I change the placeholder value(in a parameterTextBox) from the dashboard the filters remains with old values.

The script that I used is:

var viewParameter = this.parentView.control.getViewParameterByName(“viewParameter5”);

viewParameter.invalidateParameterValueLastModifiedTime();

viewParameter.refreshAllAdapters();

this.parentView.control.adapters[112].control.bypassHierarchyCache=true;
([112] is my view parameter)

From what I saw, the filters remains with the same values as for default value of the placeholder.
My wish is to have always the updated values of filters by the data from dashboard(filtered by the placeholder).
How can I update the view parameters from dashboard?

Thank you!

1 Like

Hi Costin,

You’re calling the right method to update the filter parameters, look for JavaScript errors in the console and make sure all of the code is being run (debugger; is your friend). Here is a great article that shows you how to update almost every parameter type.

https://www.dundas.com/support/support-center/support-articles/scripting/modify-a-filter-/-view-parameter-using-scripting

If you’re still having trouble, consider reaching out to the Dundas Bi support team and they can help you take a deeper look.

1 Like

Thank you @jeff!

Yesterday I had a discussion with the support team. Now, I will wait an answer from the development team.