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:
- In place, just between starting
%DBI_DO{...}%
and ending %DBI_DO%
.
- Several scripts in a topic using
%DBI_CODE{...}%
.
Parameters
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 |