Replies: 6 comments 17 replies
-
You should try BIRT's CONCATENATE aggregate function. |
Beta Was this translation helpful? Give feedback.
-
Additional to the suggeston of hvbtup 2 further options: Option 01 - Loop concat: Option 02 - MS SQL STRING_AGG: Result: With ORACLE you could use "LISTAGG" but it is a little bit tricky due to the char size of 4000 characters etc. I hope you will find the perfect option for you. |
Beta Was this translation helpful? Give feedback.
-
You have to be much more precise in your error descriptions. "Does not work" is meaningless. |
Beta Was this translation helpful? Give feedback.
-
It looks much better and you get all information like HTML-Text. Now you have 2 options, A) usage table footer B) full usage of "Dynamic Text" with direct binding. Option A) set the "Dynamic Text" to the footer line and remove the detail rows. In this case you get the text only one times. Option B) Set the "Dynamic Text" outside of the tabel and add the "data set" directly on the "Dynamic Text"-element. |
Beta Was this translation helpful? Give feedback.
-
Attached you will find an example report based on the ClassicCarModel. I hope it will help you. If not we would need your example mentioned like before on the comments. |
Beta Was this translation helpful? Give feedback.
-
Little late to this party, but if the CONCAT aggregation doesn't work, then declare a global variable in the initialize or beforeRender event as a Packages.java.util.StringBuilder, then in the onFetch event for the data set, append your string. Once the data set has been iterated over completely, call the StringBuilder.toString() method. |
Beta Was this translation helpful? Give feedback.
-
I need to concatenate the records of a DataSet containing HTML tags so that they display correctly when generating the PDF. Currently the records are like this by rows:
<p style="text-align: center;"><span style="font-family: mceinline;"><strong><span style="font-family: mceinline;"><span style="font-family: mceinline
;"><span style="font-family: mceinline;"><span style="font-family: mceinline;"><span style="font-family: mceinline;">INCAPACIDAD TOTAL O PERMANENTE:</
To just have everything grouped together in a single row like this:
<p style="text-align: center;"><span style="font-family: mceinline;"><strong><span style="font-family: mceinline;"><span style="font-family: mceinline ;"><span style="font-family: mceinline;"><span style="font-family: mceinline;"><span style="font-family: mceinline;">INCAPACIDAD TOTAL O PERMANENTE:</
This needs to be done as the records do not open and close the tags as they should. I tried many ways from DB but had no results so it is a lot of data, can DataCube achieve the result?. I appreciate the help, thank you.
Beta Was this translation helpful? Give feedback.
All reactions