Dynamic columns with Scipted Data Source #1355
Replies: 1 comment
-
Your description isn't really clear. My interpretation of what you want is: There are N data records. I think there are 2 potential approaches:
A little more info regarding the second approach: Assume that in your report there is an array variable "columns" which you initialize dynamically e.g. with
In your table item, you would hide all columns (uising a visiblity expression) where the (1-based) column index is >= columns.length. For the other columns (that are not hidden), you need dynamic text items for the titles and for the values.
(2 instead of 3 because Javascript arrays are 0-based). The column titles in the header row can be handled in a similar way (e.g. if you have a variable column_titles = ["Geschlecht", "Name", "Gewicht"], you could use the following expression for the 3rd column:
to show the titel "Gewicht". |
Beta Was this translation helpful? Give feedback.
-
Hi, the issue is following.
I am using the following BIRT version : org.eclipse.birt.runtime_4.8.0-20180626
I have a requirement where I need to make dynamic columns. There are required fields which are written in the application and for each one of them there needs to be a separate column with the parameter name as a header and the parameter value as a info row. I have knowledge only with Scripted Data Source, but the struggle has been real :)
Please provide me with a solution
P.S. Every kind of data migration will work except JDBC connection.
Beta Was this translation helpful? Give feedback.
All reactions