Developer’s Guide

Table Of Contents
8-10 Developer’s Guide
Modified CDML tags
New CDML
variable tags Description
–errnum
(variable)
Specify a range or single error number to be handled by
the -error variable tag. You can specify discontinuous
ranges, such as -errnum=500-510& -errnum=900-978.
If no error numbers are specified, all errors are handled
by the –error tag.
See appendix B “FileMaker Pro values for error codes”
for a list of error numbers.
–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 B,
“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.
[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 “Web Companion
support for Internet media types” on
page 6-13 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.
[FMP-If:
CurrentRepeatNumber]
(new parameter)
Use this parameter with the [FMP-If] tag to
specify a number for the current field repetition
within the [FMP-Repeating] looping tag.
New CDML replacement tags Description