Need a special offer?Find out if your project fits.
+

question about reportchange

Answered
long yu asked on June 4, 2020

hi :
when we call reportchange, and in the function callback, the function getreport() return the old report. 
example : 
r.on('reportchange', function(){
    info_report = r.getReport();
    console.log(info_report); // info_report is the old report, 
});
in the description of reportchange, this event will be trigged when the change is trigged, so, it will be returning the new report i think.
wait for you reponse, thank you

7 answers

Public
Vera Didenko Vera Didenko Flexmonster June 4, 2020

Hello, 
 
Thank you for writing to us. 
 
Our team will investigate this problem further. 
Meanwhile, we kindly suggest using the reportchange event.
 
Please let us know if this would work for you.
Looking forward to your reply.
 
Kind regards, 
Vera

Public
long yu June 4, 2020

thank you for your message, i wait for you correcte this bug.

Public
long yu June 16, 2020

i tried to use reportcomplete to replace reportchange.
but, sometimes, in the callback of reportcomplete, getReport()  return nothing !
it's a catastrophe for me !
could you suggest me a solution plz ?

Public
Vera Didenko Vera Didenko Flexmonster June 16, 2020

Hello, 
 
Thank you for your question. 
 
Regarding the reportchange issue, we would like to explain that our team is currently working on the fix. 
The fix will be available in the minor release version with the ETA 13th of July. 
 
The reportcomplete event may not get fired for every report change scenario (for example, when a filter is applied). 
As a workaround, we would kindly suggest using the update event: https://www.flexmonster.com/api/update/

Please let us know if this works. If any further questions arise, please don't hesitate to reach out. 
 
Kind regards, 
Vera

Public
Vera Didenko Vera Didenko Flexmonster July 15, 2020

Hello, 
 
We are happy to let you know that the issue with dispatching the reportchange event before actual changes in the Field List was fixed.
 
This is available in the 2.8.11 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component. Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.

Please let us know if everything works.
 
Kind regards, 
Vera

Public
Vera Didenko Vera Didenko Flexmonster July 21, 2020

Hello, 
 
Our team is wondering if the fix works fine for you. 
Please let us know if everything works.
 
Looking forward to your reply.
 
Kind regards, 
Vera

Public
long yu July 21, 2020

thanks a lot !
 

Please login or Register to Submit Answer