Developer’s Guide

Table Of Contents
9-14 Developer’s Guide
Employee Database example
The Employee Database example is designed to demonstrate the
most widely used CDML tags. It shows how to
search for records in the database
select sorting options
browse the database
preselect how many records to view at a time
add a record to the database
Click to search,
browse, and add
records to the
Employees.fp5
database
Click to display the
example.htm page
statically
The Employee Database example also provides a demonstration of
the difference between using a static HTML form and dynamic
CDML to display a value list. Examine the difference between two
example
links that both go to the same example.htm page but only
one dynamically displays value lists (data) from the database.
The first example
link is a simple HREF link to the example.htm
page.
<A HREF=”example.htm”>example</A>
And the CDML replacement tags appear statically on the page.
The second example
link contains a FileMaker Pro CGI command
for a CDML -view request. (The -view CDML action tag is usually
used to display format files containing value lists or CDML
replacement tags.)
<A HREF=FMPro?-db=Employees.fp5&-lay=Detail&-
format=example.htm&-view”>example</A>
The CDML replacement tags are replaced with the value lists from
the database.
Guest Book example
The Guest Book example demonstrates how web users can enter
information on a web page (in an HTML form) and submit it to a new
record in a FileMaker Pro database. The HTML form that is used on
the New Record web page includes CDML tags that allow the
database to be accessed and a new record to be created.