Custom Web Publishing with XML and XSLT

Table Of Contents
Appendix A
|
Valid names used in query strings 91
If you don’t use the .global syntax to identify a global field in a query string, the Web Publishing Engine
evaluates the global field along with the remainder of the query string without setting the global field value first.
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 Admin 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 FileMaker
Server Help.
Query command reference
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