Calculation rules
Characteristic | Description |
---|---|
Definition | A calculation rule sets the value of an item based on a calculation. Note: There is no real difference between a calculation rule and a constraint rule. Each offers different starting points in the Rule Wizard; the options on the Actions tab change depending on the rule type that you select. |
Study objects that can have calculation rules |
|
Programming experience necessary | Creating a calculation rule is comparable to writing formulas in the Microsoft Excel spreadsheet software. |
What to define | You must define:
|
Example (without a function) | A calculation rule calculates BMI using height and weight values with RefNames of HT and WT. You create the rule on the form that contains the items. You provide the following information to create the rule:
The following information appears in the Rule Summary section: evaluate on Form Submission You could create the rule with a function, as described in the next example. |
Example (with a function) | A calculation rule uses a function (_BMI) to calculate BMI from height and weight values with RefNames of HT and WT. You create the rule on the form that contains the items. A programmer creates the function, and a non-programmer provides the following information to create the rule:
The following information appears in the Rule Summary section: evaluate on Form Submission You could create the rule without a function, as described in the previous example. |
Copyright © 2013 Oracle and/or its affiliates. All rights reserved. |
---|