Developer’s Guide

Table Of Contents
Valid names used in CGI requests for FileMaker Pro XML data B-9
–sortfield (Sort field)
Name/Value Type: Parameter
What it does: Specifies the field that will be used for sorting. The
–sortfield parameter can been used multiple times to perform
multiple field sorts. The position in which –sortfield appears in the
CGI command will determine the sort order of the fields.
Value is: Name of a FileMaker Pro field.
Optional with: –find or –findall requests
Example:
FMPro?–db=employees.fp5&–format= –fmp_xml&
–sorteld=First+Name&–nd
–sortorder (Sort order)
Name/Value Type: Parameter
What it does: Indicates the direction of a sort. If used, –sortorder
must directly follow the –sortfield parameter it applies to.
Value is: The sort order. Valid sort orders are as follows, where
Custom is the value list name:
FileMaker Pro
Keyword (short) Keyword (long) Equivalent Operator
Ascend Ascending Sort a to z, –10 to 10
Descend Descending Sort z to a, 10 to –10
Custom Sort using the value list associated
with the field on the layout
Optional with: –find or –findall requests
Requires: The –sortfield parameter
Example:
FMPro?–db=employees.fp5&–format= –fmp_xml&
–sorteld=First+Name&–sortorder=descend&–nd
–script (Script)
Name/Value Type: Parameter
What it does: Specifies the FileMaker Pro script that will be
performed after finding and sorting records (if specified) during
processing of the –find request.
Value is: Name of the script to perform.
Optional with: –find or –findall requests
Example:
FMPro?–db=employees.fp5&–format= –fmp_xml&
–script=Omit+Script&–nd
–script.prefind (Script before Find)
Name/Value Type: Parameter
What it does: Specifies the FileMaker Pro script that will be
performed before finding and sorting of records (if specified) during
processing of the –find request.
Value is: Name of the script to perform.
Optional with: –find or –findall requests
Example:
FMPro?–db=employees.fp5&–format= –fmp_xml&
–script.prend=My+Script&–nd
–script.presort (Script before Sort)
Name/Value Type: Parameter
What it does: Specifies the FileMaker Pro script that will be
performed after finding records and before sorting records (if
specified) during processing of the –find request.
Optional with: –find or –findall requests
Example:
FMPro?–db=employees.fp5&–format= –fmp_xml&
–script.presort=OmitOne&–nd