Jump to content

Set Default Output Location (Relative to Current Folder URI)


cgriefer

Recommended Posts

Hey all... 

Would like to schedule some jobs, and have the output go to a sub-folder (named "Report_Output") within the current folder. 

In other words, we have a folder structure like:

  • /organizations/organization_1/CustomerReports/ACME 
  • /organizations/organization_1/CustomerReports/BigGMovers
  • /organizations/organization_1/CustomerReports/CharliesWidgetCo

Each of those customers has a "Report_Output" folder inside of their folders.

By default, jobs are scheduled to the current folder. So ACME's reports would save to ACME's folder. But I'd like them to default to /organizations/organization_1/CustomerReports/ACME/Report_Output

I know that I can hard-code a default output destination in  webappsjasperserver-proWEB-INFapplicationContext-report-scheduling.xml (as outlined at https://community.jaspersoft.com/wiki/how-change-default-output-repository-folder), but that would only allow me to specify "Report_Output". The XML file has no concept of the current folder, so the "Report Output" would be at the root of our server. 

I'd like a way to specify that the default output location should be something along the lines of:

    this.model.get("repositoryDestination").folderURI + "/Report_Output"

Anybody know of how/where I can accomplish this?

Thanks!
Charlie

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...