Custom Web Publishing Guide

Table Of Contents
Appendix A
|
Valid names used in query strings 89
You must use the .global syntax to identify a global field in a query string. The Web Publishing Engine sets
the parameter values for global fields before performing the query command or setting any other parameter
values in the query string. For direct XML requests and requests made via XSLT stylesheets that don’t use
sessions, the global values expire immediately after the request is made. For requests made via an XSLT
stylesheet that use sessions, the global values persist for the duration of the session defined in the stylesheet,
or until they are changed again with another request.
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 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
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