Custom Web Publishing Guide

Table Of Contents
Valid names used in query strings 87
–sortorder (Sort order) query parameter
Indicates the direction of a sort
Value is: The sort order. Valid sort orders are as follows, where <value-list-name> is a value list name such
as Custom:
Optional with: –find or –findall query commands
Requires: –sortfield query parameter
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.
–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 35. 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
Keyword FileMaker Pro Equivalent Operator
ascend Sort a to z, –10 to 10
descend Sort z to a, 10 to –10
<value-list-name> Sort using the specified value list associated with the field on the layout