New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

DBI_DO -- do complex processing with Perl code.

As a matter of fact, %DBI_DO{...}% is nothing but a Perl script stored withing Foswiki. There are three ways to store it:

  1. In place, just between starting %DBI_DO{...}% and ending %DBI_DO%.
  2. Several scripts in a topic using %DBI_CODE{...}%.


Parameter Description Default Required
"db_identifier" Database ID as defined in DatabaseContrib configuration. See database configuration section. none required
multivalued="par1 par2 ..." Defines HTTP parameters expected to contain several values. These could be, for instance, either values from checkboxes or multiselection lists. none optional
subquery="name" Defines a subquery which does not produce immediate result but could be used from inside another query. See %DBI_SUBQUERY% of %DBI_QUERY% none optional
topic="SomeTopic" Topic to read script from. none optional
script="name" Specific script defined by its name from several stored in a topic. none optional
name="do_name" Informational parameter which defines in-place stored script name. Useful for debugging and error messages. none optional

Topic revision: r5 - 30 Mar 2017, CrawfordCurrie - This page was cached on 18 Mar 2018 - 01:11.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License