Question:
How do I set FTP as default output option for report job and specify default FTP settings (server, port, user, password)?
Answer:
Please note the solution below verified with TIBCO JasperReports® Server v.6.2.0
Default values for FTP output can be setup in a Javascript file:
jasperserver-proscriptsbower_componentsjrs-uisrcschedulermodeljobModel.js
Add the following code within outputFTPInfo: {.....} definition (line ~1455):
outputFTPInfo: { propertiesMap: {}, serverName: "ftp.mycompany.com", userName: "user", password: "pass", folderPath: "output/reportjobs", type: "ftp", port: "21", implicit: true, pbsz: 0 }
You need to replace dummy values with your custom ones.
Please note that, by default, JasperReports Server uses so-called optimized scripts.
In order to test the changes you can add _opt=false parameter to URL to make the server uses non-optimized scripts:
http://localhost:8080/jasperserver-pro/flow.html?_flowId=searchFlow&_opt=false
If the changes meet your requirements, you should regenerate optimized scripts as described in JasperReports Server guide:
Ref. Case #00065192
Recommended Comments
There are no comments to display.