Jump to content
Changes to the Jaspersoft community edition download ×

About JavaBean Ext DataSource


Recommended Posts

By: roshansalvi - roshansalvi

About JavaBean Ext DataSource

2005-03-29 06:20

I have one class called PersonBean and it contain firstname as String, lastname as String , address as a addressobject which contain city,state,country and Array of class hobbies. I use iReport. When i say list field it display all the field except array field. How could i show this field. Does jasper support this kind of hierarchy of object ...

Please Tell me...

Thanks in Advance

 

 

By: Hawk - crunchyk9

RE: About JavaBean Ext DataSource

2005-03-29 14:39

I'm new to JasperReports, but I don't think you can do this easially.

 

I'd serialize your object tree to XML and use the JRXmlDataSource, which kicks ass IMHO.

 

-- Hawk

 

 

By: Hawk - crunchyk9

RE: About JavaBean Ext DataSource

2005-03-29 14:40

damn. posted to the wrong thread. sorry.

 

 

By: chitra - jchitra

RE: About JavaBean Ext DataSource

2005-03-29 14:55

Have you tried to access the data as:

$F{address.city}

in the design(.jrxml) file?

Please let me know if so.

 

 

By: Doug Berkland - berkland

RE: About JavaBean Ext DataSource

2005-03-29 15:46

For information on accessing fields on your top level beans see https://sourceforge.net/forum/message.php?msg_id=1722302 . Basically, declare report field as Object, and in the usage cast to actual object to get to the fields you know are there (like name.) You can drill straight down as many levels as you need this way. For the array field, I recommend a sub report with the subreport data source built as a bean array data source inside the master report passed into the subreport.

Link to comment
Share on other sites

  • 3 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hi

 

I tried following the link below:

 

RE: For information on accessing fields on your top level beans see https://sourceforge.net/forum/message.php?msg_id=1722302

 

but I get the following 'error':

 

Access to this page is restricted (either to project members or to project administrators) and you do not meet the requirements to access this page. Please contact the administrator of this project for further assistance.

 

Please help.

 

Regards

 

Brian

Link to comment
Share on other sites

  • 2 weeks later...

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