User Guide

Programming i!-Database Plus
8
i!-Database Plus and DBWizard
<struct>
<index>3</index>
<var><name>TitleID</name><data>12328612</data></var>
<array><name>Artist</name><string>Buffet, Jimmy</string></array>
<array><name>Title</name><string>A-1-A</string></array>
<array><name>Copyright</string><data>MCA</string></array>
<array><name>Label</name><string>MCA</string></array>
<array><name>ReleaseDate</name><string>1974</string></array>
<var><name>NumTracks</name><data>11</data></var>
</struct>
</array>
</rsHeader>
The <rsHeader></rsHeader> pair indicates which query this represents: it is simply
an echo of the hdr CGI parameter.
The <struct></struct> pair contains <var></var> pairs which contain the
Start,PageSize, NumberRecords, TotalRecords and PanelIndex variables. The value
of these variables, wrapped in the
<data></data> pairs, provide information about the
quantity of records.
The <array></array> pair indicates that an array is to follow. Each record is wrapped
in a
<struct></struct> pair and the columns of each record are represented by the
<var></var> pairs.
The <index></index> pair represents the index into the array that this structure or
record represents. String data is enclosed by
<array></array> tags, where the data is
enclosed in
<string></string> tags. Numerical data is enclosed in <var></var>
tags, where the data is enclosed in
<data></data> tags. If the abs CGI parameter has
been set, these would be absolute indexes (in this case, 51,52 and 53 instead of 1, 2 and
3).
A script error may be present. In this case, the error will be reported in the following XML format:
<rsHeader>
<scriptError>
<errorNumber>ErrorNumber</errorNumber>
<errorDescription>ErrorDescription</errorDescription>
</scriptError>
</rsHeader>
ErrorNumber is a singled 32-bit value representing an error.
ErrorDescription is a string describing the error.
The errors returned by the script may be generated by the underlying ADO technology used to
access the database. In all cases, the
ErrorDescription contains information about how to fix
the error.