Creating the validation rule

You need to create a rule to check that the calculations on the Other charges page are correct.

Procedure

  1. On the Datacap Studio Rulemanager tab, in the Rulesets pane, select the Validate ruleset and click Lock/Unlock ruleset.
  2. Right-click the Validate ruleset and choose Add Rule. Rename the new rule Validate Other Charge.
  3. Under the Validate Other Charge rule, select Function 1.
  4. On the Actions library tab, expand the Validations library. Select the CalculateFields action and click Add to function.
  5. In the Rulesets pane, select the CalculateFields action. Then, in the Properties pane, set strParam as follows:
    'Quantity' * 'Unit_Cost' = 'Total'
  6. Click Save. Then, click Lock/Unlock ruleset and choose Publish ruleset.