Select to view content in your preferred language

Print to csv from a tab in AT programmatically.

1005
0
03-21-2016 01:15 PM
LefterisKoumis
Frequent Contributor

I am trying to use the exportToCSV function to export to csv from a tab that is not clicked on. I used the function tabChanged to change the active tab:

this.tabContainer.selectChild(page);
            this.tabChanged();

and I verified that the active tab has indeed changed by:

 var params = this.tabContainer.selectedChildWidget.params;
             console.log(params.title);

however, when the call is made to

table.exportToCSV(params.title);

I get the error that on the _FeatureTable.js the

 } else if (this.grid.store instanceof Memory) {

this.grid is null!

how can I simulate a click on a tab or update the grid with another tab's grid content?

Thanks.

0 Kudos
0 Replies