Hi Teodor,
When using the Json Data Adapter, the data query syntax doens't seem to work for accessing header fields in a json data set. Or I'm missing something in the query syntax.
You will see in the example report attached that all header fields are null when previewing the report in Studio. The fields in the detail band however are working fine.
When I add header fields in the Studio using the 'add node as field', they are added with the syntax header.customer.id
but this doesn't work. I also tried using JSONPath syntax (to access header fields you need to use the syntax $.header.customer.id
) but this doesn't work, JSONPath (http://goessner.net/articles/JsonPath/) doesn't seem to be implemented in JsonDataSource.
If this issue could be solved, this would allow JasperReports to be used for Node.js applications written in JavaScript. I think it will be even possible to incorporate the JasperReports reporting engine as a Node.js module using a Java bridge I came across last week (https://github.com/cesarvr/Ella). As enterprise adoption for Node.js (applications) is growing very rapidly, it would be a great opportunity I think!
Thanks and kind regards,
Ward
Recommended Comments
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