Step 2 Calculation Virtual Field

Visual LANSA

Step 2. Calculation Virtual Field

REP008 - Virtual Fields

In this step you will define the iiiTaxAmount virtual field to be calculated as 25% of the iiiSalary field:

1.  Select the iiiTaxAmount field in the list of Undefined virtuals.

2.  In the Details tab, enter the following:

Virtual field type

Calculation

Derive value when record is read

ü Select option for yes

 

 

Factor

Operation

Factor

Result

iiiSalary

/

100

*WORKFLD

*WORKFLD

*

25

iiiTaxAmount

 

     Your Details tab should now look like this:

 Note:

  • Calculation Virtual Fields can only be calculated when a record is read.
  • They are Display-only Virtual fields.

3.  Now that its derivation has been defined, the iiiTaxAmount field will be listed under Read virtuals