var fileName = 'Pianificazione Attività.xlsx'; var startDate = new Date(); //TODO var endDate = new Date(new Date().getTime()+(1000*60*60*24*365*2)); //TODO //see link for luckysheet options // https://dream-num.github.io/LuckysheetDocs/guide/config.html#configuration-item //full readonly behavior set by geoweb as default var viewerOptions = { //... }; //it cointains properties destinated to groovy var groovyData = { groovy: 'export_pianificazione.groovy', fileName: fileName, startDate: startDate, endDate: endDate }; var params = { href: gwContextPath+'/rest/exportByGroovyExecution', method: 'POST', fileName: fileName, data: groovyData, viewerOptions: viewerOptions }; var title = 'title'; openGwXlsxViewerTab(params, title);