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

Subreport not generating


Recommended Posts

I created couple of reports using Webservice datasource, Reports are rendering fine in Jasper Studio Preview and if they are deployed as a single report on jasperserver. However, if try to consume the same report as a sub-report it doesnot render. I have followed following steps:-

1. created a report with proper webservice query (same that is present in subreport).

2. I created a subreport element with appropriate Filter expression

3. Set Connection Type as "Use a Datasource Expression" and Data Source Expression as "((com.jaspersoft.webservice.data.query.IWSDataSource)$P{REPORT_DATA_SOURCE}).clone()"

4. Entered these subreport parameters   (uriKeyauth,TypeKey,authParametersKey,languageKey,verbKey)

Problem:- The report if used as main report renders correctly but if it is consumed as subreport only labels appear Field Values don't appear

 

Kindly assist

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Not sure if you linked the subreport parameters. 
You might need to pass over the parameter from the main report to the sub reports.

Basicly right click on subreport then select show properties.
Under subreport tab select parameters. 
From there link parameters. 

Aslo to test. Create fields equal the your given parameters and then drag the parameters onto your reports, to test and see if parameters value is correct.

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