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

Javabean as datasource


Recommended Posts

Hi there,

When reading tihe documentation about java beans as datasource it tells me the following:

"

If an attribute is also a Java object, you can double-click the object to display its other attributes.

"

on this link https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-u...

Can anybody explain me how to do this because a can double click everywhere but nothing happens.

Thanks in advance.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi guys,

Thanks for your responses, the thing is I know how to handle a java bean but the specific question is how to deal with a java class with attributes that are classes themselves.

As stated before the documentation says 

"

If an attribute is also a Java object, you can double-click the object to display its other attributes.
"

but in the editor there's no way to double click on the class and getting the attributes of the underlying class.

I can add the underlying class as a seperate entry and pick the attributes of the class but in that case they are not scoped to the the parent class and I have to modify all attributes by hand to get things working. 

Link to comment
Share on other sites

  • 2 months later...

I like to add a bit more:

The example provided here is applicable only if the report is in the same workstation with java appcation (the jasper report file .jrxml/.jasper is bundled with the web application, deployed in the same web/app server). But what if the report is depoyed in a remote jasper report server and not in the same server with the bundled web app? How do you pass the ArrayList of beans to the jasper file in such a case?

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