it2be_data excel export in ngclient
Posted: Tue Feb 04, 2020 1:02 pm
Hi all,
I have this simple function to export a dataset in excel which is properly working on SmartClient but not on NGClient.
By going on the plugin page (https://servoycomponents.com/components ... ata-plugin), I see it's marked as compatible with NGClient.
This is the api page where it's specifically marked as NGClient compatible as well: http://software.servoycomponents.com/do ... tion_write
Unfortunately the examples here are outdated (the function plugins.it2be_data.excel().write(filePath.getAbsolutePath(), dataset) is not used anymore).
I know how to export a dataset without using this plugin but this would mean to put hundreds of forms in QA.
Does anyone know how to make this plugin working on NGClient??
Thank you for your time
Marco
I have this simple function to export a dataset in excel which is properly working on SmartClient but not on NGClient.
- Code: Select all
function exportToExcel(dataSet, headers){
var file = plugins.file.createTempFile("export",".xls");
var fileName = file.getAbsoluteFile();
var excelDoc = plugins.it2be_data.createExcel();
excelDoc.convertDataSet(dataSet);
excelDoc.write(fileName.getAbsolutePath(), headers, dataSet)
}
By going on the plugin page (https://servoycomponents.com/components ... ata-plugin), I see it's marked as compatible with NGClient.
This is the api page where it's specifically marked as NGClient compatible as well: http://software.servoycomponents.com/do ... tion_write
Unfortunately the examples here are outdated (the function plugins.it2be_data.excel().write(filePath.getAbsolutePath(), dataset) is not used anymore).
I know how to export a dataset without using this plugin but this would mean to put hundreds of forms in QA.
Does anyone know how to make this plugin working on NGClient??
Thank you for your time
Marco