Jump to content
Changes to the Jaspersoft community edition download ×

Collection as field without subreport  


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...