martin_48 Posted August 22, 2019 Share Posted August 22, 2019 Hi JasperSoft,Why are there so many inconsistencies between how different data connections/adapters/sources work?for example XML data source vs json data source...The examples included on install don't work the same for these data sources.the json data source customer orders subreport scenario seems to require the parameter passed from master to sub <subreportParameter name="net.sf.jasperreports.json.source"> <subreportParameterExpression><![CDATA["data/northwind.json"]]></subreportParameterExpression> </subreportParameter>[/code]however the xml example doesn't have this parameter, relying instead of the configuration in the subreport itself. This is fair enough, but if i remove the parameter from the json master report, it doesn't fall back on using the sub report datasource.Have i misunderstood something, or is this expected behaviour?Kind RegardsMartin Link to comment Share on other sites More sharing options...
martin_48 Posted August 22, 2019 Author Share Posted August 22, 2019 Jasper Reports Ultimate Guide 3rd edition (maybe out of date) states..." Subreports behave in the same way and expect to receive the same kind of input whenthey are being filled. You can supply to your subreport either a data source using the<dataSourceExpression> element or a JDBC connection for the engine to execute thesubreport’s internal SQL query using the <connectionExpression> element. Thesetwo XML elements cannot both be present at the same time in a <subreport> elementdeclaration. This is because you cannot supply both a data source and a connection foryour subreport. You must decide on one of them and stick to it"Seems to imply the only data connection type that's supported is JDBC. What about XML, JSON, CSV etc? 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