|Table with dynamic number of columns [message #889307]
||Tue, 19 June 2012 01:34
| Patrick Bänziger
Registered: September 2011
In my application, I need to create a form describing a set of „changes". Usually those are describe in a „Name-Value" like style.
Until now, I used a table with a single column (String column with HTML) to describe the changes, using multiline-cells. Something like this:
Event name: Birthday party
Location: Grand Central Park
Duration: 180 minutes
Event name: Funeral
Location: Grand Central Cemetery
Duration: 60 minutes
Now the question came up whether we could transform this into a horizontal form (i.e. a table with more than one column).
While one set of changes would have the same number of columns, another set may have a larger (or smaller) number of columns.
Until now, I just had a fixed number of columns or made as many columns as one might need (and just hide the ones that are not necessary).
But in general (or for an unknown number of columns, is it possible in Scout to tell a table at runtime to create N columns which we can then fill?
Powered by FUDForum
. Page generated in 0.01707 seconds