AnsweredAssumed Answered

Print to csv from a tab in AT programmatically.

Question asked by lkoumis on Mar 21, 2016

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.

Outcomes