Forum OpenACS Development: Iterating a list::template elements

Collapse
Posted by Juan Carlos on
I need to create a Loop that reads every row and every element in a list::template and put every element in a string. ¿How can I read every element from the Multirow?
Collapse
Posted by Benjamin Brink on
Hi Juan,

Local values are set by adding "-local" multirow.

According to this API doc, the values are organized in a tcl array, where each key references a row, and each array value is an ordered list of values: https://openacs.org/api-doc/proc-view?proc=template::query::multirow

See also: https://openacs.org/doc/db-api-detailed#kernel.dbapi_db_multirow for options

cheers,
Ben