We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

reportchange being called unexpectedly

Answered
Thien Duong asked on November 3, 2022

Good morning, I'm having an issue with the reportchange method called unexpectedly while in flat form of the pivot table.
Behavior doesn't seems to persist in classic form or compact form
 
https://jsfiddle.net/fvouyqhj

Attachments:
FM error flat.gif

6 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 4, 2022

Hello, Thien,

Thank you for contacting us and providing us with the sample.

Kindly note that before subscribing to the reportchange event, it is important to wait until the report is loaded. Therefore, the recommended approach is using the reportcomplete event:

flexmonster.on('reportcomplete', function() {
  flexmonster.off('reportcomplete');
  flexmonster.on('reportchange', function() {
    alert('Report changed!');
  });
});

You are welcome to check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/k3nj7ybd/ 

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,
Nadia

Public
Thien Duong November 4, 2022

Hi Nadia, thanks for providing the answer,
From the JsFiddle provided, I was observing this behavior that's similar to my local work environment.
When in Flat mode, reportcomplete is being triggered twice every time user make a change instead of once like in Classic or compact mode, since our client has a large dataset they do notice that the changes are being loaded twice (which take a good amount of time for 20k rows in Pivot table). Is this expected?
 
Thanks,
Thien D.
 
 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster November 7, 2022

Hello, Thien,

Thank you for the response and for providing us with the detailed illustration.

Our team will take a look at the described behavior and provide a fix with our minor release with an ETA December 12th. We will notify you about the release.

You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 14, 2022

Hello, Thien,

We are reaching out to let you know that the fix took longer time than we expected. 

Our team has to postpone the fix until the nearest minor release ETA December 26th. We will get back to you as soon as the update is ready.

Do not hesitate to contact us if any questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster December 27, 2022

Hello, Thien,

We are pleased to inform you that the issue with the reportchange event being triggered twice for the flat view was fixed.

This fix is available in the 2.9.41 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-41/  

You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/  

Please let us know if it works for you. Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 18, 2023

Hello, Thien,

Hope you are doing well.

We were wondering if you had a chance to test the updated version. Could you please confirm if the fix works well for you?

Looking forward to hearing your feedback.

Kind regards,
Nadia

Please login or Register to Submit Answer