Jump to content
We've recently updated our Privacy Statement, available here ×

Loop over nodes and join them to one string


marten.carlzon

Recommended Posts

Hi,

We where discussing if we could change to use Jasper reports for a new project and stumbled upon a request I didn't know if we could do so I am asking here.

We are using xpath for data and am wondering if we can join nodes together in a comma seperated string, when looping over nodes we usually get one data per row but instead we would want to join them and I am wondering if this is possible.

Example:

If I have the following xml as in the image, can I make a string in my report that is the names of all emploeyees seperated by a comma?
Like: All those who work here are A A, B B, C C?
converted-file.png.08b4b58768310d6cba20c0216a068e5e.png
If I where to make them into a subreport I would get
All those who work here are:
A A
B B
C C

So would be nice if I could as I loop join them instead of having to print one per line...

We are working at the moment with iReport 5.1.0 but the new project don't have any reports as of yet so they might be able to go directly to Jasper Soft Studio but would be interesting to know if this is solveble in both tools.

Thanks for any help.
Write you later / Mårten

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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