Custom Web Publishing Guide

Table Of Contents
Valid names used in query strings 81
–new (New record) query command
Creates a new record and populates that record with the contents of any field name/value pairs
Required query parameters: –db, –lay
Optional query parameter: one or more field name(s), –script
Note For information on including new data for a portal, see “Adding records to a portal” on page 77.
Example:
To add a new record:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=departments&Country=Australia&-new
–process (Process XSLT stylesheets)
Processes an XSLT stylesheet without requesting data from the database. This query command can only be
used with XSLT stylesheets.
Required query parameter: –grammar. You must use the fmresultset or FMPXMLRESULT grammar.
Example:
http://192.168.123.101/fmi/xsl/my_template/my_stylesheet.xsl?-grammar=fmresultset&-process
See “Processing XSLT requests that do not query FileMaker Server” on page 53.
–scriptnames (Script names) query command
Retrieves the names of all available scripts for a specified database that is hosted by FileMaker Server and
enabled for Custom Web Publishing with XML or XSLT
Required query parameters: –db
Example:
To retrieve the names of all scripts:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-scriptnames
–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