Hi,
I have a base form with the basic navigation functions to move first, last, create, delete and export to excel, and then a form that extends the base one to work with a particular Table.
I can not make the excelexport work. The base form has this code in the excel button:
var formName = application.getActiveWindow().controller.getName();
var bytes = plugins.excelxport.excelExport(forms[formName].foundset, [globals.ArrayExcel]);
plugins.file.writeFile("ExportedFromServoy.xls", bytes);
And in OnLoad of the other form:
globals.ArrayExcel = "'companyname','country','city','contactname','address'";
When I click, the Excel file is created but no data in it, just a line with companyname','country','city','contactname','address
What am I doing wrong?