jasper reports - Designing JRXML for java beans as datasource having nested java beans in them -
i working on project need utilize jasper-reports. want generate jasper study using javabeans
datasource
jrxml or more exactly jasper
file. so, input jasper file list/collection of beans. java bean follows :
mybean1{ field1 ; field2 ; ... //constructors , getter-setters per normal bean convention. }
the problem facing that, amongst these fields, 1 of them list of bean mybean2
. mybean2
has 2 fields , respective getter- setter methods.
so, construction of mybean1 follows :
mybean1{ field1 ; field2 ; list<mybean2> list ; ... //constructors , getter-setters per normal bean convention. }
so every object of mybean1 have variable number of elements in list of mybean2. construction of study want generate follows : (consider list<mybean1> given datasource jasper file
)
so, study :
mybean1_object1 : field1 field2 mybean2object1.field1 mybean2object1.field2 mybean2object2.field1 mybean2object2.field2 ...... ...... mybean1_object2 : field1 field2 mybean2object1.field1 mybean2object1.field2 mybean2object2.field1 mybean2object2.field2
due list of mybean2 in mybean1 facing difficulty in designing jrxml. please provide me hint implementing jrxml.
java jasper-reports javabeans
No comments:
Post a Comment