var title = 'Title'; var gwClassName = 'gw_class_name'; //var gwdResources = '001,002,003,004,005'; var gwdResourcesFilters = [ {condition: 'AND', columnName: 'cod_resource', operator: '=', filterType: 'STRING', value: ['002']} {condition: 'AND', columnName: 'cod_resource', operator: 'IS NOT NULL', filterType: 'STRING'} }; var params = { className: gwClassName, detailLayoutName: 'who_n_when', listedAttributesNames: 'job_order_code,pr_type,pr_expected_start_date,pr_expected_end_date,pr_expected_timspan,job_order_description', //gwdResources: gwdResources, gwdResourcesFilters: gwdResourcesFilters, readonly: false, useWorkshift: true, //workshift module is used to compute timeslots nDays: 15, fromTodayOffset: 1, dayColumnWidth: 180, hourSize: 60, timeSlotDuration: 15, minHours: 8, maxHours: 18, reportPath: 'path/to/report.jasper', openReportButtonLabel: 'Stampa Programmazione Settimanale' }; var gwTimetableTab = openGwTimeTableTab(title, params);