sarwoski Posted January 25, 2016 Share Posted January 25, 2016 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 expression3. 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 More sharing options...
javier.ggi90 Posted January 26, 2016 Share Posted January 26, 2016 Probably the datasource is being consumed entirely before generating the subreport, what type of datasource are you using? Link to comment Share on other sites More sharing options...
sarwoski Posted January 27, 2016 Author Share Posted January 27, 2016 It is a webservice (Get request) Link to comment Share on other sites More sharing options...
joseng62 Posted January 27, 2016 Share Posted January 27, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now