Introduction
A calculated field is a custom value that uses existing entity attributes to calculate a result via logical rule. This allows you to create a new field from the attributes that are already part of the entity, without changing those attributes in any way. You can then display this value on a maintenance form; it will update whenever the fields it uses in calculation update.
This example defines a calculated field that returns the total amount spent on a given product by multiplying the number of products by the price and subtracting any discount. After creating and compiling the calculated field, you can test the rule in an entity scenario to confirm it calculates the values you expect.
Prerequisites
The entity must exist.
|
Quick Steps |
| 1 |
Search for and open the entity |
| 2 |
Open the Attributes section, then open the Calculated Fields section |
| 3 |
Add a calculated field |
| 4 |
Enter the details, then click OK |
| 5 |
Design the rule |
| 6 |
Configure the rule components |
| 7 |
Save the entity, then compile the rule |
| 8 |
Open the scenario |
| 9 |
Enter the values, then run the test |
| 10 |
View the result diagram |
| 11 |
Save the scenario |
Detailed Steps
Step 1. Search for and open the entity.
The form's entity is where you configure its calculated fields.
Step 2. Open the Attributes section, then open the Calculated Fields section.
This is where you create calculated fields that can be used on maintenance forms later.
Step 3. Add a calculated field.
Click the Create New icon to add a new calculated field.
Step 4. Enter the details, then click OK.
The properties are:
The Access Modifier options are:
Public: Any entity can access this calculated field.
Private: Only this entity can access this calculated field.
Protected: Only this entity and any child entity can access this calculated field.
What are the improvements over S3 Version 6?
This is a new process.
Related Articles
Create Entities with an Excel File
Create Entities with a Table
Create an Entity First
This post is part of the Entity topic. Click here to open the Entity Overview.
#Xelence
#Entity