dhyton_1 Posted November 29, 2021 Share Posted November 29, 2021 In Studio, I have created a simple JSONQL report that works in JasperReports but in Studio the field renders as null. What am I doing wroing or is there a bug?(The field in studio renders as null in the report preview and in the Dataset and Query Dialog Data Preview)have the following JSON that I am using in a JSON data adapter with JSONQL as the query language{ "data": { "common": { "data": [{ "projectNameLabel": "XXXX", }] }}The report has the following query string <queryString language="jsonql"> <![CDATA[data.common.data[0]]]> </queryString>and my detail band had only one field <textField> <reportElement x="100" y="2" width="200" height="16" uuid="314a40d0-7a2e-49bf-a877-6cbce9de124e"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textFieldExpression><![CDATA[$F{projectNameLabel}]]></textFieldExpression> </textField> Link to comment Share on other sites More sharing options...
yama818 Posted December 5, 2021 Share Posted December 5, 2021 Perhaps the DataAdapter is not configured properly.Try to specify 'Select Expression'.- Data Adapter Setting Sample- Report Preview - I made a few edits to the json file for testing.[ { "data": { "common": { "data": [{ "projectNameLabel": "XXXX" }] } }}] I hope this is useful to you. 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