Jump to content
Changes to the Jaspersoft community edition download ×

Unable to use list component with a json datasource


schakkalakka

Recommended Posts

Hi,

 

I'm using iReport 5.6.0 and a json datasource to generate my reports.

Cant copy/paste my json here, its build like this:

{        "item": {            "somePeople": [{                "user": {                    "id": 1,                    "name": "Alice"                }            }, {                "user": {                    "id": 2,                    "name": "Bob"                }            }, {                "user": {                    "id": 3,                    "name": "Mallory"                }            }]        }    }

 
In my mainreport I use "item" as query.
After adding the list-component, the dataset1 appears.
This is where I use "item.somePeople" as query. Now I'm adding the field "name", having"user.name" in description.
Then I edit list datasource, using the connection expression. The designer adds the param $P{REPORT_CONNECTION}.
 
Lastly I add the field "name" from dataset1 to my list.
After compiling (no error) the list is empty.
What am I doing wrong?
 
Link to comment
Share on other sites

  • 6 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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