Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/db-api.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/db-api.xml,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/acs-core-docs/www/xml/developers-guide/db-api.xml 26 Jun 2004 12:58:21 -0000 1.10
+++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/db-api.xml 27 Sep 2004 20:27:33 -0000 1.11
@@ -556,6 +556,33 @@
set user_url [acs_community_member_url -user_id $user_id]
}
+
+
+ You can also iterate over a multirow after it has been
+ created - check the documentation for
+ template::multirow
+
+
+ For example,
+
+
+
+db_multirow assets assets {
+ select asset_id,
+ from ...
+}
+
+..
+
+set asset_id_l [list]
+multirow foreach assets {
+ lappend asset_id_l $asset_id
+}
+
+
+ Technically it's equivalent to using a code block on
+ the end of your db_multirow.
+