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)
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 :)
Implode inside report
in Products
Posted
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