Get Free Trial

reportchange pass parameter

Mahdi Al Sheikh asked on February 24, 2020

how can i pass parameter to event “reportchange”

3 answers

Mykhailo Halaida Mykhailo Halaida Flexmonster February 24, 2020

Hi Mahdi, 
Thank you for writing to us.
Kindly note that the reportchange event does not accept any parameters. It is used to detect any changes in the report configurations of the pivot table instance, for example:

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

More info on this event can be found here:
Please let us know if this helps.
Best regards,

Mahdi Al Sheikh February 24, 2020

Thank you for your response
but i want to send value to this event(reportchange) and do something and then return value ,
for example :

flexmonster.on('reportchange', function (Json) {   
(Json.par1); })


Mykhailo Halaida Mykhailo Halaida Flexmonster February 26, 2020

Hi Mahdi,
Please note that the mentioned event is triggered by Flexmonster and no external variables can be passed in as parameters. With that in mind, we would suggest requesting the necessary data directly in the body of the event callback. For example:

let jsonObj = {
str1: "Hello world!"

flexmonster.on('reportchange', function() {

We hope this works for you.
Best regards,

Please login or Register to Submit Answer