Hi, I'm trying to generate more than one list-builder in the same page and I'm trying to generate the name dynamically, doing something like this:
db_multirow name sql_name {
select dynamic_name as list_name
} {
...
template::list::create \
-name $list_name \
-multirow $list_name \
...
}
and in the adp file I'm trying to do this:
<multiple name="name">
<listtemplate name="@name.list_name@"></listtemplate>
</multiple>
but I get an error(
missing close-brace
while compiling
"uplevel"
(compiling body of proc "template::code::adp::/var/lib/aolserver/service0/p...", line 2)
)
When I remove the @s from the adp file and do it like this
template::list::create \
-name no_dynamically \
-multirow no_dynamically \
...
and in the adp:
<multiple name="name">
<listtemplate name="no_dynamically"></listtemplate>
</multiple>
It works fine, but since I am generating the lists inside a multirow, the only list that I see in the final html page is the one with the last values obtained by the multirow
Can anybody help me? Is there another way to do this?
Thanks!