2001 JI Open Discussion Posted August 21, 2006 Share Posted August 21, 2006 By: roshansalvi - roshansalvi About JavaBean Ext DataSource 2005-03-29 06:20I 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:39I'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:40damn. posted to the wrong thread. sorry. By: chitra - jchitra RE: About JavaBean Ext DataSource 2005-03-29 14:55Have 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:46For 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 More sharing options...
bkaremba Posted December 4, 2006 Share Posted December 4, 2006 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 More sharing options...
teodord Posted December 12, 2006 Share Posted December 12, 2006 Hi, I think you should ask the question again, since many things have changed in the last 18 months and there is a better solution for what you need to achieve. Please post it as a new message thread. I hope this helps.Teodor 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