Developer’s Guide

Table Of Contents
9-14
Developer’s Guide
UnexpectedError.htm
NotEnoughMemory.htm
DatabaseNotOpen.htm
LayoutNotFound.htm
DataEntryError.htm
DatabaseViolation.htm
FieldViolation.htm
SecurityDisabled.htm
FormatNotFound.htm
FileNotFound.htm
InvalidAddress.htm
For a complete list of error code numbers, see appendix C,
“FileMaker Pro values for error codes.”
For examples of error pages, see the gb_error.htm file in the Guest
Book example, the errors.htm file in the Employee Database
example, and the reqfielderror.htm file in the Shopping Cart
example. (See “Looking at the three CDML examples” on page 9-15
for more information.)
FileMaker Developer 5 > External FileMaker APIs > CDML > CDML
Examples
Using an encoding parameter with a CDML
replacement tag
You can use a special encoding parameter with certain CDML
replacement tags to specify how the data will be encoded by the web
browser when it is sent to the web page.
[FMP-Field: Information, Break]
The encoding parameters are displayed in the Parameters pop-up
menu in the CDML Tool when the appropriate CDML replacement
is selected. (See “Using the Tags tab” on page 9-6.)
Planning your web site
You’ll need to create a format file for every type of interaction with
FileMaker Pro that you want your web site to provide. As you create
each format file, you’ll need to know
1 what web users will do on the page
1 what type of requests will be made to the database
This encoding
parameter Tells the browser to do this
Raw Don’t perform any encoding
HTML Use standard HTML encoding
Format
(new parameter)
Use standard HTML encoding and replace text, numbers,
dates, times, and container size formatting with FileMaker
Pro formats (for example, to add <BOLD> and <ITALIC>
elements)
This new parameter can be used with the [FMP-Field] and
[FMP-RepeatingItem] replacement tags. (See “New and
modified CDML tags” on page 9-9.)
Break Use standard HTML encoding and replace soft carriage
returns with the <BR> HTML element
Display Translate text to the language specified in the Web
Companion Configuration dialog box. Use this parameter
with the [FMP-CurrentAction], [FMP-FindOpItem], and
[FMP-SortOrderItem] replacement tags.
For information, see the CDML Reference database
(described in “About the CDML Reference database” on
page 9-12) and “Setting Web Companion configuration
options” on page 6-3.
URL Use URL encoding, which includes converting spaces to
%20.