Previous Topic

Book Contents

Book Index

Next Topic

Rule Type: Calculation

Rules of the 'Calculation' type are an important part of the Valuemation calculations functionality. Any new calculation you create in the Calculation Customizer needs to be linked to a rule to take effect. The calculation rule specifies when the particular calculation is triggered.

Rule configuration

Brief overview of the rule configuration wizard for 'Calculation' rule type:

  • Step 1 - Basic Rule Parameters

    Provide rule name and description, select rule type = 'Calculation', assign the rule to an object type. (Attributes of this object type will then be used for further rule specification.)

  • Step 2 - Triggering type and condition for the rule

    Calculation rules can be used with trigger types A, B or C. Calculation rules exhibit specific triggering behaviour:

    • If used with trigger A or C, then a calculation rule is triggered only when the editor (to which the rule is assigned) is opened.
      Step 2 window provides fields for selection of rule trigger attribute and an optional condition.
    • If used with trigger B, then a calculation rule is triggered always when the rule triggering condition is met, independently on open editors.
      Step 2 window provides a field for selection of rule trigger condition.

      Note: The result of the calculation is saved into an attribute. The attribute (if displayed in the editor) will be disabled in case the calculation rule has got the 'when condition is true' type. Other rules are not taken into account.

    'Force Backward Compatibility of Type A (wrong behavior)'

    When trigger type A is selected for a rule calculation rule, then a check box 'Force Backward Compatibility of Type A (wrong behavior)' is available in the step 2 window. This check box turns on backward compatibility with earlier application versions where rules of trigger type A were triggered also with the editor closed. This backward compatibility should be used only when the current trigger A behaviour (i.e. triggering only with the editor opened) causes problems to an old customization.

  • Step 3 - Select the calculation(s) which will be performed when the rule triggers.

    To add calculations, click the 'Select...' button. A list of calculations available for the rule's object type opens. Select one or more calculations in the list and click 'Choose' to add them to the list of calculations triggered by the rule.

    To remove calculations, select them in the list of calculations triggered by the rule and click the 'Remove' button.

See Also

Rule Types

Rule Type: View

Rule Type: Validation

Rule Type: Action GUI

Rule Type: Action Object

Rule Type: Starts an Action