Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/reptut01_0375.htm]
You are here:

...

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

Code Fragment

Derive value when record is read

ü Select option for yes


 |
 3.  Add the following code to Virtual Field Derivation #iiitaxamount := (#iiisalary / 100) * 25
     Change      

Change the code to use your initials.

     Your Details tab should now look like this: Image Removed

Image Added
 

 44.  Now that its derivation has been defined, the iiiTaxAmount column will be listed under Read Virtuals.  Image Removed

Image Added

5.  Save the table definition.
[ Image Removed |../../index.htm#lansa/reptut01_0375.htm]