Custom Web Publishing Guide

Table Of Contents
82 Custom Web Publishing Guide
Using the query parameters
This section contains information about the query parameters available for XML and XSLT requests. For
information on parameters that are only available for XSLT requests, see
“Using query strings in FileMaker
XSLT stylesheets” on page 49.
–db (Database name) query parameter
Specifies the database that the query command is applied to
Value is: Name of the database, not including the filename extension if any
Note When specifying the name of the database for the –db parameter in query strings, do not include a
filename extension. The actual database filename can optionally include an extension, but extensions are not
allowed as a value for the –db parameter.
Required with: All query commands except –dbnames and –process
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=departments&-findall
–encoding (Encoding XSLT request) query parameter
Specifies the text encoding for an XSLT request. This query command can only be used with Custom Web
Publishing with XSLT requests.
Value is: US-ASCII, ISO-8859-1, ISO-8859-15, ISO-2022-JP, Shift_JIS, or UTF-8
Optional with: all query commands in an XSLT request
Example:
http://192.168.123.101/fmi/xsl/my_template/my_stylesheet.xsl?-db=employees&-lay=departments&-grammar=fmresultset
&-encoding=Shift_JIS&-findall
See “Setting text encoding for requests” on page 52.
–field (Container field name) query parameter
Specifies the name of a container field
Required with: request for data in a container field
See “About the URL syntax for FileMaker container objects in XML solutions” on page 24, and “About the
URL syntax for FileMaker container objects in XSLT solutions” on page 48.
fieldname (Non-container field name) query parameter
Field names are used to control criteria for the –find query command, or to modify the contents of a record.
When you need to specify a value for a non-container field for a query command or parameter, use the field
name without the hyphen (–) character as the name portion of the name/value pair.
Name is: Name of the field in the FileMaker database. If the field is not in the underlying table of the layout
specified in the query string, the field name must be fully qualified. See
“About the syntax for a fully qualified
field name” on page 77.
Value is: For the –new and –edit query commands, specify the value you want to store in the field in the
current record. For the –find query commands, specify the value you want to search for in the field.