You need to create a subreport to display the list of options and include in your report, passing new JRBeanCollectionDataSource($F{options}) as data source for the subreport.
HTH, Lucian vijay venkataraman wrote: > Hi, > I have a situation where i have to display List of Items in a tabular > form as shown below. > > > -------------------------------------------------------------------- > Column A Column B Column C > -------------------------------------------------------------------- > 1. Chosen colors? Green xxxx > Blue > Yellow > -------------------------------------------------------------------- > 2. Play Games Football xxx > hockey > -------------------------------------------------------------------- > > Each row is identified by a bean that is contained in the list. > Each item represents a row and this is represented by a bean ItemBean. > The structure of ItemBean is given below. > > ItemBean > String getText() > List<String> getOptions() > String getValue() > > I know how to display the row, provided each column has only a single > string / value. In the table shown above, it can be seen that Column B, > has multiple values. So for a given row, column B can has multiple > values and each value should be displayed in a separate line. > > Can anyone point me how i can accomplish a report of the above nature. I > am planning to generate HTML & PDF report. > > Thanks, > Vijay > > ------------------------------DISCLAIMER------------------------------ > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. > > If you receive this message in error, please immediately delete it and > all copies of it from your system, destroy any hard copies of it and > notify the sender. You must not, directly or indirectly, use, disclose, > distribute, print, or copy any part of this message if you are not the > intended recipient. > > Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each > reserve the right to monitor all e-mail communications through its > networks. > > Any views expressed in this message are those of the > individual sender, except where the message states otherwise and the > sender is authorized to state them to be the views of any such entity. > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions