I have a multirow datasource with some of the columns extended onto it from data in a tcl list. That is, the names of the additional columns are in a list. So i do something like this:
set column_names [db_list get_col_names {}]
foreach col $column_names {
template::multirow extend my_multirow $col
}
Now, I need to ouput the columns in my ADP template. I tried something like this:
<multiple name="my_multirow">
<list name="column_names">
@my_multirow.@column_names:item@@
</list>
</multiple>
But that does not work. I end up with
@my_multirow.list_element@ with list_element being the various values in the list.
I tried several different ways to format this, using list_of_lists etc, and could not find an easy way to accomplih it. What I ended up doing was rendering the HTML for a table row with the multirow contents in the TCL.
Is this possible, or even a good idea?