REP001 - Create Fields

The Repository field definitions are the foundation of your business applications. Other objects in the Repository such as files, components and functions are built from the basic field definitions. The centralization of a single definition and its reuse provide huge productivity benefits.

Important Notes: Throughout this course you will be creating fields, files and forms, giving them a name beginning with your initials. This is shown as iii at the beginning of the name, which you should replace with your initials.

If you prefer to use keyboard shortcuts, see Using the Editor:

Then see 8.6 Keyboard Shortcuts.

Objectives

Field Name

Description

Type / Length

iiiDeptCode

Department Code

Alpha(4)

iiiDeptDescription

Department Description

Alpha(20)

iiiEmployNumber

Employee ID

Alpha(2)

iiiSurname

Employee Surname

Alpha(25)

iiiGivenName

Employee Given Name

Alpha(25)

iiiSalary

Employee Salary

Packed(11,2)

iiiStartDate

Employee Start Date

DateTime(26)

iiiEmployNotes

Employee Notes

String(512)

 

Note: These fields will be used to create the Department and Personnel files in later repository exercises.

To achieve these objectives you will complete the following:

Step 1. Prepare Your System

Step 2. Copy Fields

Step 3. Manually Create Fields

Step 4. Reference Fields

Step 5. Delete a field

Step 6. Create a Dynamic List for Your Fields

Step 7. Create and Execute Test Form

Step 8. Change your field definitions

Summary

Before You Begin

In order to complete this exercise, the demonstration Personnel System files must have been installed in this partition. You should also have completed the Visual LANSA User Interface Exercises.