Jump to content
Changes to the Jaspersoft community edition download ×

XML - Create a comma separated string of a field


Gemma3004

Recommended Posts

Hi, I am using Jasper Studio with an XML data source.

I would like to know how to amalgamate the questionId field (when the field appears on multiple rows as shown below) into a comma separated string so it can appear on my report as "1,2,3"

rather than on separate lines like

1

2

3

Can I amalgamte into a string via a variable?

Here is how my xml dataset looks like:

<Answer Category="xxxx" Id="xxxxxx" questionId="1">

<Answer Category="xxxx" Id="xxxxxx" questionId="2">

<Answer Category="xxxx" Id="xxxxxx" questionId="3">

Please help as I have a deadline to meet and I am really struggling.

Thank you

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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