Custom Web Publishing with XML and XSLT

Table Of Contents
94 FileMaker Server Custom Web Publishing with XML and XSLT
–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
Query parameter reference
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
–delete.related (Portal records delete) query parameter
Deletes a record from a portal field.
Optional with: –edit query command
Requires: A related table name and a record id
Example:
The following example deletes a portal record with a record ID of 20 from the related table called jobtable,
with a parent record ID of 7.
http://host/fmi/xml/fmresultset.xml?db=career&lay=applications&recid=7&delete.related=jobtable.20&edit
–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