Jump to content
We've recently updated our Privacy Statement, available here ×

abcdelena

Members
  • Posts

    1
  • Joined

  • Last visited

abcdelena's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi everyone, I know a lot it's been already posted on that subject, but I've been reading posts for hours, tried everything that I could think of, and still I haven't found something that works. So I am finally asking for help. I designed a report with a subreport on it on iReport. If I use $P{SUBREPORT_DIR} + "subreportname.jasper" as subreport expression it won't be able to locate the subreport, but if I specify the local path of the subreport it gives me no problems, so I use this last option. When I upload this report to JasperServer it can be run correctly from there, so everything's OK so far. The problem comes when anyone else (or myself, without using a local path for the subreport) wants to edit or run the report from iReport. I can open the report and the subreport from the Repository Navigator, but if i try to compile the main report or open the subreport from the main report, I get a "Unable to locate..." error. I've tried a lot of things, including setting the subreport expression to: - repo:/mymainreportparentfolderproperty/subreportname.jrxml - repo:/mymainreportparentfolderproperty/mainreportname_files/subreportname.jrxml - repo:subreportname.jrxml (since it's what the JRXML validation box suggests when you upload it to JasperServer) - all the ones above with the extension .jasper or .jrxml.jasper instead (well, I had to try everything) - all the ones above with the prefix "http://myIP/jasperserver:8080/services/repository/" instead of "repo:" - all the ones above with no prefix at all I also tried to set the $P{SUBREPORT_DIR} parameter to all of the paths above or leave it blank and use it in the subreport expression. In every case it won't be able to locate the subreport file, and I'm out of ideas. I could save both report and subreport locally and make it work with local paths, but I've been specifically asked to make it work from the Repository Navigator. The funny thing is that there's also an image in the main report and setting the image expression to "repo:imagename.jpg" works perfectly. I would REALLY appreciate any help, since I'm totally stuck and I'm required to solve it. Thanks a lot, Elena
×
×
  • Create New...