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: 'https://cdn.flexmonster.com/2.3/data/data.csv'
} reportcomplete: function () {
report = flexmonster.getOptions();
console.log(report);
}
});
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