Developer’s Guide

Table Of Contents
9-10
Developer’s Guide
Modified CDML tags
–errorfmtfield
(variable)
Used in conjunction with the –recid variable tag or with
global fields to pull error format file information from a
field in the database instead of an HTML file in the Web
folder
Required parameter: –recid (for non-global fields)
–modid
(variable)
Detect record modification collisions by including the
–modid variable with the –edit action tag. If the
modification ID does not match in an –edit request, then
a new error code 306 is returned (see appendix C,
“FileMaker Pro values for error codes”).
New CDML replacement tags Description
[FMP-CurrentModID]
(replacement)
Used in conjunction with the –modid
request parameter to replace with the
record’s current internal modification ID.
The [FMP-If] tag supports the
CurrentModID and CurrentRecID
parameters as numeric types.
[FMP-CurrentPortalRowNumber]
(replacement)
Replace with the number of the current
portal row.
Use this tag within the [FMP-Portal]
looping tag.
[FMP-CurrentRepeatNumber]
(replacement)
Replace with the number of the current
repetition in a repeating field.
Use this tag within the [FMP-Repeating]
looping tag.
[FMP-ElseIf]
(replacement)
Replace with specified data if the
conditions of the [FMP-If] are not met.
Use this tag with the [FMP-If] tag and a
conditional operator.
New CDML
variable tags Description
[FMP-IncludeField: fieldname]
(replacement)
Replace with specific field data.
For –view requests, the specified field
must be a global field.
For all other requests, you must include
the –recid request parameter (except for
global fields).
[FMP-InlineAction]
(replacement)
Lets you send multiple requests to your
database from within a single format file.
The –format request parameter (CDML
variable tag) is ignored within the inline
request.
[FMP-Log]
(replacement)
Lets you specify comments to be recorded
in the Info.log file each time the page that
contains this tag is accessed through the
Web Companion . (See “Monitoring your
site” on page 6-8 for information.)
Modified CDML tag Description
-token
(variable)
You can use multiple tokens by specifying a
number from 0 to 9 after a period in the variable,
for example, -token.3.
[FMP-CurrentToken]
(replacement)
This replacement tag will now accept a parameter
value of 0 to 9, for example, [FMP-
CurrentToken: 3].
[FMP-If: CurrentToken]
(modified parameter)
The currenttoken parameter of the [FMP-If] tag
can now include a number from 0 to 9, for
example [FMP-If:
CurrentToken:3.eq.{CurrentToken:4}].
[FMP-If:
CurrentPortalRowNumber]
(new parameter)
Use this parameter with the [FMP-If] tag to
specify a number for the current portal row within
the [FMP-Portal] looping tag.
New CDML replacement tags Description