Jump to content
Changes to the Jaspersoft community edition download ×
  • How to Automatically Enable and Configure FTP properties in Scheduler 'Output Options' tab


    asimkin

    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: 

    http://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v62/customizing-javascript-files

     


    Ref. Case #00065192


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...