Jump to content
Changes to the Jaspersoft community edition download ×

Implode inside report


ygo1710

Recommended Posts

Hi, just started jaspersoft today and running into some problems here. I want to use the implode function inside the report but I can't find anything similar to this function inside the expression editor. Can someone tell me the correct way to do it? If possible could you guide me where to put it in as well still unfamiliar with some stuff.

Name I am using $F{Name}, School is $F{School} while Family is $F{Family}

I tried using something like this inside the expression but it doesn't work: (sorry if I added into the wrong place)

org.springframework.util.StringUtils.collectionToDelimitedString($F{School},",")

So this is my current situation:

Name | School | Family

test1 | SchoolA | Mom

test1 | SchoolA | Dad

test1 | SchoolB | Mom

test1 | SchoolB | Dad

 

I want the report to show something like this: (if there is another better way of doing or method, could you tell me more about also, would like to learn more :)

Name |       School             | Family

test1 | SchoolA, SchoolB , | Mom, Dad

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...