Custom Web Publishing Guide

Table Of Contents
Appendix A
|
Valid names used in query strings 97
–script (Script) query parameter
Specifies the FileMaker script to run after the query command and sorting are executed. See “Understanding
how an XML request is processed” on page 38.
Value is: Script name
Optional with: all query commands except –dbnames, –layoutnames, –process, and –scriptnames
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–script=myscript&–findall
–script.param (Pass parameter to Script) query parameter
Passes a parameter to the FileMaker script specified by –script
Value is: A single text parameter.
1 To pass in multiple parameters, you can create a string delimiting the parameters and have your script
parse out the individual parameters. For example, pass “param1|param2|param3” as a list with the “|
character URL-encoded as this:
param1%7Cparam2%7Cparam3
1 To treat the text parameter as a value that is not text, your script can convert the text value. For example,
to convert the text value to a number, your script could include the following:
GetAsNumber(Get(ScriptParam))
1 If your query contains –script.param without –script, then –script.param is ignored.
1 If your query contains more than one –script.param, then the Web Publishing Engine uses the last value
that it parses.
Optional with: –script
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–script=myscript
&–script.param=Smith%7CChatterjee%7CSu&–findall
–script.prefind (Script before Find) query parameter
Specifies the FileMaker script to run before finding and sorting of records (if specified) during processing
of the
–find query command
Value is: Script name
Optional with: all query commands except –dbnames, –layoutnames, –process, and –scriptnames
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–script.prefind=myscript&–findall