Developer’s Guide

Table Of Contents
Using FileMaker Pro XML to deliver your data 7-17
This example was designed to be viewed in the Internet Explorer 5.0
for Windows web browser. For information on new browsers that
can be used to view the example, go to the FileMaker product
support pages (www.filemaker.com/support/fm_help.html) in your
browser.
The example uses an inventory database for office equipment and
provides two methods for displaying records from the database—in
a list or in a detailed view of each record. Web site visitors can switch
between List View and Detail View, and add, edit, delete, or find
records in the database.
The XML Inventory example includes:
1 a text file containing the JavaScript library used for this
demonstration, named FMP.js
1 the Inventory.fp5 database
1 HTML files for viewing, searching, and adding records to the
database
To view the XML Inventory example:
1. If necessary, copy the Inventory example files from the FileMaker
Developer 5.5 CD onto your hard disk.
Developer Extras\FileMaker, Inc\External FileMaker APIs\XML\
2. Place a copy of the Inventory Example folder and its files in the
Web folder inside the FileMaker Pro 5.5 application folder on your
hard disk.
FileMaker Pro 5.5 > Web > Inventory Example
Note For security, when actually publishing a database on the Web,
you should not keep the database file in the Web folder unless you
plan to administer it remotely. See “Opening password-protected
databases remotely” on page 6-18 for information.
3. In FileMaker Pro, open the Inventory.fp5 database and make sure
it’s shared via the Web Companion.
See “Enabling the Web Companion” on page 6-3 and “Sharing the
database via the Web” on page 6-5 for information.
4. In your web browser, type localhost (or your computer’s IP
address) followed by /inventory example/ and press Enter.
http://localhost/inventory example/
http://17.17.17.17/inventory example/
For information on setting up your computer as the localhost, see
“Testing your site without a network connection” on page 6-17.
The XML Inventory example opens in List View in the browser.
5. Select a record and click the Detail View button.
The currently selected record displays in a separate Detail View
window. It is also possible to open the Detail View window by
double-clicking a record item in the list. To close the Detail View
window, click the Cancel button. To apply edits made to a record in
Detail View, click the Update button.
The Inventory.fp5 database used in the XML Inventory example