Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

How to call reportcomplete event for each pivot ?

Manoranjan Gahana asked on May 25, 2017

I have 3 pivot & i am displaying each pivot in a tab if you will click a tab it will display the respective pivot table .I want to do some operation after report completed for that i am using reportcomplete event.But the issue is this event is calling only once for last pivot only.I want to call this for each pivot .How can i do this ?
 
var pivot = $(“#pivotContainer”).flexmonster({
componentFolder: “https://cdn.flexmonster.com/2.3/”
toolbar: true,
report: {
dataSource: {
  dataSource: {
    filename: ‘http://cdn.flexmonster.com/2.3/data/data.csv’
   }
  reportcomplete: function () {
     report = flexmonster.getOptions();
     console.log(report);
  }

});

1 answer

Public
Tanya Gryshko Flexmonster May 25, 2017

Hello Manoranjan,
Thank you for writing. Please replace report = flexmonster.getOptions(); with report = pivot.getOptions(); where pivot is the variable name containing the pivot instance (this is where you define it: var pivot = $(“#pivotContainer”).flexmonster). Let us know if you have more questions.
Regards,
Tanya

Please login or Register to Submit Answer