Jump to content
Changes to the Jaspersoft community edition download ×

Parameter for (server) directory in JasperReport Library


gert_1
Go to solution Solved by gert_1,

Recommended Posts

Is there a parameter which I can use in my report that returns me the parent-folders / directory of the location on the server?

I need this so that my report does a request based on the location of the report. 

 

Example:

  • (server location report1)
    • reports
      • acc
        • report_unit1 (report-unit)
          • report1.jrxml
    • Should have a textfield like (www.acc-website.com/picture.png)

And:

  • (server location report1)
    • reports
      • live
        • report_unit1 (report-unit)
          • report1.jrxml
    • Should have a textfield like ((www.live-website.com/picture.png)
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

Solved it, reference to: https://community.jaspersoft.com/questions/800720/how-access-property-expressions

Request a report propertie with following expression: $P{JASPER_REPORT}.getProperty("ireport.jasperserver.report.resource")

Then some concatenating to do but that's no showstopper. 

 

I am wondering though, where I can find all properties of the aJasper Report (ireport.jasperserver.xx.xx etc.)

Link to comment
Share on other sites

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...