28.06.2013 Views

Papers in PDF format

Papers in PDF format

Papers in PDF format

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

can be accessed with the IDC-file as "form action" element, like <strong>in</strong> the follow<strong>in</strong>g simple example:<br />

The correspond<strong>in</strong>g IDC file (" ") looks like follows:<br />

The "datasource" (Bild DB) has been previously def<strong>in</strong>ed via the System (!) DSN and is an Access<br />

database. The "template" gives the HTX-file that def<strong>in</strong>es how the result will be processed.<br />

The query is only executed if the "RequiredParameters" have been entered <strong>in</strong> the form. The<br />

"SQLStatement" def<strong>in</strong>es how the query looks like, parameters from the <strong>in</strong>put form are <strong>in</strong>cluded<br />

enclosed <strong>in</strong> '%'. Note, that <strong>in</strong> this example not only values but also qualifiers ('=") have been used as parameters. Further keywords are available, e.g. "MaxRecords"<br />

to limit the size of the result set, "MaxFieldSize" to set the maximum length of data returned<br />

per field, and "Password" to set the user connect<strong>in</strong>g to the database.<br />

After process<strong>in</strong>g the SQL statement a HTML file is constructed us<strong>in</strong>g the specification <strong>in</strong> the<br />

HTX file. The section for the display of the output could look like:<br />

The section between " " and " " is executed once for every<br />

row of the result set, that implies that it is not executed if the result set is empty. Variables<br />

from the database and the user <strong>in</strong>put can be used as " respectively<br />

" ". Us<strong>in</strong>g the " " statement, conditional blocks can be <strong>in</strong>cluded.<br />

Server variables can be used, for example "HTTP_ACCEPT", "HTTP_USER_AGENT",<br />

"HTTP_UA_PIXELS", and "HTTP_UA_COLOR". Thus the output can be configured e.g.<br />

depend<strong>in</strong>g on the capabilities of the client.<br />

-21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!