Hi guys,
I'm trying to download the report in PDF format with a button click in perspective.
In the gateway logs showing like the below:
Any idea what is wrong from my end?
log = system.util.getLogger('Complex Order Pdf Request')
reportPath = "DashboardReport"
reportParameters = {'StartDate':self.view.custom.bindings.selection.dtStartDate, 'EndDate':self.view.custom.bindings.selection.dtEndDate, 'historyEnable':self.view.custom.bindings.calculations.DashboardData.showHistory}
today = system.date.now()
fileDate = system.date.format(today, "yyyy-MM-dd")
settings = {"path":"C:\\", "fileName":"Report_"+fileDate, "format":"pdf"}
windowsUser = system.util.getProperty("user.name")
log.info(windowsUser)
log.info(system.util.getProperty("user.home"))
system.report.executeAndDistribute(path = reportPath, project = "Test", parameters = reportParameters, action = "save", actionSettings = settings)
Thanks,
Priyanka