Custom Web Publishing Guide

Table Of Contents
100 FileMaker Server Advanced Custom Web Publishing Guide
The –sortorder query parameter can been used with the –sortfield query parameter to specify the sort order
of multiple sort fields. The syntax for specifying the sort order of a sort field is:
–sortorder.precedence-number=sort-method
where:
1 precedence-number in the –sortorder.precedence-number parameter is a number from 1 to 9 that specifies
the
–sortfield query parameter that the –sortorder query parameter applies to.
1 sort-method is one of the keywords in the preceding table to specify the sort order, such as ascend
In the following example, the sort order of the highest precedence sort field (dept) is ascend, and the sort
order of the second highest precedence sort field (
rating) is descend. The precedence-number 2 in –sortorder.2
specifies that the query parameter –sortorder.2=descend applies to the –sortfield.2=rating query parameter.
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=performance&–sortfield.1=dept
&–sortorder.1=ascend&–sortfield.2=rating&–sortorder.2=descend&–findall
Note If a –sortorder query parameter is not specified for a sort field, the default ascending sort is used.
–stylehref (Style href) query parameter
Generates an XML-stylesheet processing instruction within the output document—setting the value of the
href attribute (
href=/mystylesheet.css or href=/stylesheets/mystylesheet.xsl)—so you can use client-side,
cascading stylesheets (CSS) or XSLT stylesheets with your XML document. The value of the
–stylehref
parameter must use an absolute path. The name of the stylesheet can be any name but it must contain an
extension of either
.css or .xsl. See “Using server-side and client-side processing of stylesheets” on page 39.
This parameter is used in conjunction with the –styletype parameter.
Optional with: All query commands
Requires: –styletype parameter
Example (assumes mystylesheet.xsl is in the root folder of the web server software):
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–styletype=text/xsl
&–stylehref=/mystylesheet.xsl&–findall
–styletype (Style type) query parameter
Generates an XML-stylesheet processing instruction within the output document—setting the value of the
type attribute (
type=text/css or type=text/xsl)—so you can use client-side, cascading stylesheets (CSS) or
XSLT stylesheets with your XML document. See
“Using server-side and client-side processing of
stylesheets” on page 39. This parameter is used in conjunction with the –stylehref parameter.
Optional with: All query commands
Requires: –stylehref parameter
Example (assumes mystylesheet.css is in the root folder of the web server software):
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–styletype=text/css
&–stylehref=/mystylesheet.css&–findall