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 @@ -{/doc/acs-templating {Templating}} {Templating System API: Multirow} +{/doc/acs-templating {ACS Templating}} {Templating System API: Multirow} Templating System API: Multirow - - -

Multirow

Summary

Access and modify rows and columns of a multirow data -source.

Methods

-multirow getname index column
-
+

Multirow

+ +Templating System : API +Reference +

Summary

+

Access and modify rows and columns of a multirow data +source.

+

Methods

+
+multirow getname index column
+
+

Get a particular column value or a reference to an entire row.

  • Rows are indexed starting with 1.
  • If a column name is omitted, this procedure will set -name to be a reference to an array containing the values -for the row specified by index.
  • +name to be a reference to an array containing the values +for the row specified by index.
-
-multirow setname index column value
-

Set the value of a column in a specified row.

-multirow sizename
-

Get the number of rows in the data source.

-multirow createname column [column ...]
-

Set up a new multirow data source. This is an alternative to -having db_multirow create the -data source.

-multirow appendname value [value ...]
-

Add a row at the end of the data source. Extra values are -dropped, missing values default to the empty string

-multirow mapname body
-

Evaluate body for each row of the data source, and +

+
+multirow setname index column value
+
+

Set the value of a column in a specified row.

+
+multirow sizename
+
+

Get the number of rows in the data source.

+
+multirow createname column [column ...]
+
+

Set up a new multirow data source. This is an alternative to +having db_multirow create the data source.

+
+multirow appendname value [value ...]
+
+

Add a row at the end of the data source. Extra values are +dropped, missing values default to the empty string

+
+multirow mapname body
+
+

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.)

Examples

+(Not yet committed.)

+

Examples

+
   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)"
-

Note(s)

+
+ \ No newline at end of file