Custom Web Publishing with XML and XSLT

Table Of Contents
100 FileMaker Server Custom Web Publishing with XML and XSLT
Examples:
http://localhost/fmi/xml/fmresultset.xml?db=FMPHP_Sample&lay=English&relatedsets.filter=none&findany
http://localhost/fmi/xml/fmresultset.xml?
db=FMPHP_Sample&lay=English&relatedsets.filter=layout
&
relatedsets.max=all&findany
http://localhost/fmi/xml/fmresultset.xml?
db=FMPHP_Sample&lay=English&relatedsets.filter=layout
&
relatedsets.max=10&findany
–relatedsets.max (Limit portal records) query parameter
Specifies the maximum number of rows to return in the results for this query.
Value is: an integer, or all.
1 If the query specifies an integer, then the Web Publishing Engine returns that number of rows after the
initial row are returned.
1 If the query specifies all, then the Web Publishing Engine returns all of the related records.
1 If the query does not specify the –relatedsets.max parameter, then the number of rows is determined by
the value specified on the –relatedsets.filter parameter. See
“–relatedsets.filter (Filter portal records) query
parameter” on page 99.
Optional with: –find, –edit, –new, –dup, and –findquery.
Examples:
http://localhost/fmi/xml/fmresultset.xml?db=FMPHP_Sample&lay=English&relatedsets.filter=layout
&
relatedsets.max=all&findany
http://localhost/fmi/xml/fmresultset.xml?
db=FMPHP_Sample&lay=English&relatedsets.filter=layout
&
relatedsets.max=10&findany
–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 39.
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.