Hi,
I am making a report that shows the top 6 products, presented in 6 columns.
After Filter process, Limit process, only 6 rows of data are selected, and then uses the Transpose() process to switch the 6 rows to 6 columns.
At the view.php file, I assign the Label for each column c0 to " ", c1 to P1, c2 to P2, c3 to P3, c4 to P4, c5 to P5, c6 to P6.
The report output nicely in 6 columns.
But there could be scenario when the Datastore ends up with less than 6 columns. Let say there are only 4 columns, the report outputs " ",P1, P2, P3, c4, c5, c6. (c4 to c6 are the default empty data rows).
Is there a way to make the Table column dynamic?
Thank you.