Hi,
I've built a dynamic table thanks to your example, but I can't manage to create the column titles dynamically,depending on the number of columns.
I try to add a similar itemSeparator layout node, with the for and forItem elements, placed on the page header of the .4rp.
In the report .4gl, I have two for bucles
REPORT r_dynamic_table(rowNo)
DEFINE rowNo,colNo INTEGER,
titCol char(30)
ORDER EXTERNAL BY rowNo
FORMAT
ON EVERY ROW
FOR colNo=1 to 10
LET titCol = ldata[colNo]
PRINT titCol
END FOR
FOR colNo=1 TO 10
PRINT colNo,rowNo
END FOR
END REPORT
But when running the report it only shows the column titles.
Does anyone know how to identify different FOR elements, or how to achieve this?
Thanks,
Silvia Arduán