Configure dynamic parameters

EN_preferences-dynamic-parameters-edition

A framework dynamic parameter is made up of the following:

Dynamic parameter configuration example

The dynamic parameter is called id and you can assume the dynamic value extracted is 12345. The text request will be <p>The dynamic value is 12345, and not 12345.</p>.

The regular expression used for replacement will be (The dynamic value is) (\d+), (and not) (\d+).

If Groups equals 2, 4, then the request will be changed to <p>The dynamic value is ${id}, and not ${id}.</p>.

If Groups equals 2, then the request will be changed to <p>The dynamic value is ${id}, and not 12345.</p>.

Advanced usage

When certain versions of GWT are used, it can be useful to generate multiple dynamic parameters.

In this advanced usage of dynamic parameters, dollar signs are used to perform the following steps:

  1. The Regular expression specified in the Extraction section is run.
  2. Replacements are done in the Regular expression field of the Replacement section using dollar signs.
  3. Replacements are done in the Name field using dollar signs.
  4. The dynamic parameter search is done as usual.

  1. Add an extra group using parentheses in the Regular expression field of the Extraction section.
  2. Use dollar signs in the Regular expression field of the Replacement section to retrieve the values of the extra group added in the Regular expression field of the Extraction section.
  3. Specify a name for the parameter using dollar signs in the Name field.
  4. Click OK.