2006 IR Open Dicussion Posted August 26, 2006 Share Posted August 26, 2006 By: DarMe - darme Collection as field without subreport  2006-01-09 13:16 Hey,ÂÂI have a JRBeanDataSource with some fields - one of its is the field 'persons' which represents a Collection with Strings.ÂÂNow the simple question:ÂDoes anybody know a way to execute this Collection by writing the persons among each other without using a subreport? By: Teodor Danciu - teodord RE: Collection as field without subreport  2006-01-11 02:22 ÂHi,ÂÂI'm not sure what exactly do you mean byÂ"writing persons among each other",Âbut I suspect you want to just list the person names separated by "newline" or commma.ÂYou can acieve this by using a text fieldÂwith isStretchWithOverflow="true" and by callingÂin its expression an utility method of your ownÂthat could produce the concatenated String outÂof the Collection.ÂÂ<textFieldExpression>ÂMyNamesConcatenator.concatenate($F{PersonNamesCol})Â</textFieldExpression>ÂÂ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