Versions Compared

Key

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

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

...

In this step, you will concatenate the Department field iiiDeptCode with the Employee Number field iiiEmployNumber to set the value of the Full Employee Number field iiiFullEmployNumber.

1.  Select the iiiFullEmployNumber 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 box for yes

Populate real field when writing to the table

No

 |
3.  Add the following code to Virtual Field Derivation:

     #iiiFullEmployNumber := #iiiDeptCode + #iiiEmployNumber

     Change Change the code to use your initials.

     Your Your Details tab should now look like this: Image Removed

Image Added

3.  The iiiFullEmployNumber field will now be listed under Read virtuals.
[ Image Removed |../../index.htm#lansa/reptut01_0380.htm]