🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

‘reportchange’ is not triggered when it should

Courtney Chow asked on July 30, 2019

Our team is using the latest version of flexmonster.

In the filter modal, when the Values button is selected and then click the Apply button, the event reportChange is triggered as expected.

However, when the Apply is clicked after clicking the link Clear value filter, even though clearing the filter indeed led to the report change (the appearance of the pivot grid changed and the filter key in the rows of slice in the report gotten from getReport() disappeared), the reportChange event is not triggered.

It seems to me, in order to successfully trigger the reportChange event with Clear values filter clicked, you have to change something on the checkbox list (check or uncheck an item),  and then click Apply. If you didn’t change anything, there will be no reportChange event got triggered.

Wondering if there is a workaround, for now.


2 answers

Vera Didenko Vera Didenko Flexmonster July 30, 2019

Thank you for pointing this out to us.
Our team will provide a fix for this in the minor release version with the ETA 27th of August.
As a workaround, we kindly suggest using the update event:

flexmonster.on('update', function () {
alert('Report changed!');

Here is a JSFiddle example for illustration.
Best Regards,

Vera Didenko Vera Didenko Flexmonster August 28, 2019

We are pleased to inform you that the issue with not dispatching reportchange event when the filter is cleared was fixed.
This is provided in the 2.7.13 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/ .
Please let us know if everything works.
Best Regards,

Please login or Register to Submit Answer