Index: openacs-4/packages/acs-templating/www/doc/api/multirow.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/api/multirow.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-templating/www/doc/api/multirow.adp 27 Oct 2014 16:40:18 -0000 1.2
+++ openacs-4/packages/acs-templating/www/doc/api/multirow.adp 7 Aug 2017 23:48:02 -0000 1.3
@@ -1,36 +1,53 @@
- Access and modify rows and columns of a multirow data
-source. Access and modify rows and columns of a multirow data
+source. Get a particular column value or a reference to an entire
row. Set the value of a column in a specified row. Get the number of rows in the data source. Set up a new multirow data source. This is an alternative to
-having db_multirow create the
-data source. Add a row at the end of the data source. Extra values are
-dropped, missing values default to the empty string Evaluate body for each row of the data source, and
+ Set the value of a column in a specified row. Get the number of rows in the data source. Set up a new multirow data source. This is an alternative to
+having db_multirow create the data source. Add a row at the end of the data source. Extra values are
+dropped, missing values default to the empty string Evaluate body for each row of the data source, and
return a list with all results. Within the body, all columns of the
current row are accessible (and modifiable) as local variables.
-(Not yet committed.)Multirow
Summary
Methods
-multirow getname index column
-
+
Multirow
+
+Templating System : API
+Reference
+Summary
+Methods
+
+multirow getname index column
+
+
-
-multirow setname index column value
-
-multirow sizename
-
-multirow createname column [column ...]
-
-multirow appendname value [value ...]
-
-multirow mapname body
-
+
+multirow setname index column value
+
+
+
+multirow sizename
+
+
+
+multirow createname column [column ...]
+
+
+
+multirow appendname value [value ...]
+
+
+
+multirow mapname body
+
+Examples
+(Not yet committed.)
template::query foo multirow "select first_name, last_name from users" # get the first name of the first user @@ -41,7 +58,10 @@ # this will the full name of the first user set full_name "$foo(first_name) $foo(last_name)" -