Creating the Validate Flight Cost rule
You create the Validate Flight Cost rule in Datacap Studio.
Procedure
To create the Validate Flight Cost rule:
- Make sure the Validate ruleset is locked for editing.
- Right-click the Validate ruleset and choose Add Rule.
- Rename the new rule from Rule1 to Validate Flight Cost.
- Rename the default function from Function1 to Validation: Flight Cost.
- On the Actions library tab, select the CalculateFields action (also in the Validations library).
- Make sure the Validation: Flight Cost function is selected in the Rulesets pane.
- Click Add to function at the side of the Actions Library pane.
- Select the CalculateFields action and in the Properties pane set the strParam parameter to 'Airfare' + 'Taxes' = 'Total_Cost'. These parameters are the names of the fields as specified in the document hierarchy.
- In the Rulesets pane, click Save.