Custom Web Publishing Guide

Table Of Contents
92 FileMaker Server Advanced Custom Web Publishing Guide
–view (View layout information) query command
If the FMPXMLLAYOUT grammar is specified, retrieves layout information from a database and displays it in
the
FMPXMLLAYOUT grammar. If a data grammar (fmresultset or FMPXMLRESULT) is specified, retrieves the
metadata section of XML document and an empty recordset.
Required query parameters: –db, –lay
Optional query parameter: –script
Examples:
To retrieve layout information:
http://192.168.123.101/fmi/xml/FMPXMLLAYOUT.xml?–db=employees&–lay=departments&–view
To retrieve metadata information:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–view
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 54.
–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 56.