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

inconsistencies between different data sources?


martin_48

Recommended Posts

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 Regards

Martin

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 when
they 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 the
subreport’s internal SQL query using the
<connectionExpression> element. These
two XML elements cannot both be present at the same time in a
<subreport> element
declaration. This is because you cannot supply both a data source and a connection for
your 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

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