Home
Intelligence (Analytics)
How to access nested collection and render in list
ahmedmdm
<p>HI,</p><p>I am a newbie to BIRT. I am trying to generate Document like report using POJO as dataset. POJO has couple of java collection fields which i need to access and display as list using grouping. Is there a way to do it? And also i have some nested pojo fields, is there a way to access them?</p><p>Any help would be appreciated.</p><p> </p><p>Example of POJO I am using</p><p> </p><p>public class Document{</p><p> </p><p>Author author;</p><p>List <Question> questions;</p><p>}</p><p> </p><p>public class Author{</p><p> String name;</p><p> Long authorId;</p><p>}</p><p> </p><p>public class Question{</p><p> String quetionTxt;</p><p> Long questionId;</p><p> List<Answer>possibleAnswers;</p><p>}</p><p> </p><p>Thanks</p>
Find more posts tagged with
Comments
ahmedmdm
<p>Any help in this matter will be greatly appreciated.</p><p>Thanks.</p>
kclark
<p>You should be able to group your data on the list or table. Is there any reason you're wanting to group the data in your POJO? If I'm misunderstanding your needs let me know
</p>