Updatepatterns, Updatepattern – Adobe Extending Dreamweaver CS4 User Manual
Page 280
274
EXTENDING DREAMWEAVER CS4
Server behaviors
The search patterns must identify the participant and extract several parameters. However, if a parameter such as
cursorType is not found, you should still recognize this pattern as a recordset. The cursor parameter is optional. In the
EDML, the search patterns might look like the following example:
The first three patterns are required to identify the recordset. If the last parameter is not found, the recordset is still
identified.
Description
This optional advanced feature lets you update the participant precisely. Without this tag, the participant is updated
automatically by replacing the entire participant text each time. If you specify an
updatePatterns
tag, it must contain
specific patterns to find and replace each parameter within the participant.
This tag is beneficial if the user edits the participant text. It performs precise updates only to the parts of the text that
need changing.
Parent
implementation
Type
Block tag.
Required
No.
Description
This tag is a specific type of regular expression that lets you update participant text precisely. There should be at least
one update pattern definition for every unique parameter that is declared in the insertion text (of the form
@@paramName@@
).
Parent
updatePatterns
Type
Block tag.
Required
Yes (at least one, if you declare the
updatePatterns
tag).