Custom Web Publishing Guide

Table Of Contents
Valid names used in query strings 79
For example:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=departments&Country.global=USA&-edit
Note When you use the –edit command to set the value of a global field, you don’t need to use the –recid
parameter if you are only setting the global field value with that request.
Important If you are using a global field in an XSLT stylesheet, you must use the Administration Console to
enable the
XSLT Database Sessions option for the Web Publishing Engine. Otherwise, the values of global fields
are not maintained between requests. See the
FileMaker Server Advanced Web Publishing Installation Guide.
Using the query commands
This section contains information about the query commands available for XML and XSLT requests.
Note For XSLT requests only, all of the following query commands require the –grammar query parameter.
–dbnames (Database names) query command
Retrieves the names of all databases that are hosted by FileMaker Server and enabled for Custom Web
Publishing with XML or XSLT.
Required query parameters: (none)
Example:
To retrieve the database names:
http://192.168.123.101/fmi/xml/fmresultset.xml?-dbnames
–delete (Delete record) query command
Deletes the record as specified by –recid parameter
Required query parameters: –db, –lay, –recid
Optional query parameter: –script
Example:
To delete a record:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=departments&-recid=4&-delete
–dup (Duplicate record) query command
Duplicates the record specified by –recid
Required query parameters: –db, –lay, –recid
Optional query parameter: –script
Example:
To duplicate the specified record:
http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-lay=departments&-recid=14&-dup