Step 3 Create Department Maintenance Form

Visual LANSA

Step 3. Create Department Maintenance Form

REP005 - Creating Files

In this step you will create a test form which will allow you to add, change, delete and display the data in the department file you have just created.

1.  Create the Department Maintenance form.

a.  Create a new form with the following characteristics:

Name

iiiMaintDepartment    (where iii=your initials)

Description

Department Maintenance

 

     Your New Form dialog should look like this:

     The form will open in the Editor.

b.  In order to use a template, you need to know the Identifier for the file iiiDepartments. Templates do not recognize long names.

     On the Favorites tab, expand the width of the Last Opened tab. If necessary, use the right mouse menu on a column heading to show the Identifier column.

     Make a note of the file iiiDepartment's Identifier. For example iiiDEPARTM.

c.  With your new form selected in the editor, click the Templates button on the Design ribbon

     Press the Template button in the Design ribbon to display the Choose Template dialog.

d.  Select the VL_BASEMNT Visual LANSA flat file maintenance template and press the Execute button.

e.  Answer the template questions as shown in the table below. (Remember to replace iii with your 3 character identifier.)

Template/Wizard Question

ANSWER

Supply a word that describes WHAT this data entry program works with

Department

Enter the name of the PHYSICAL file to be used by this template

iiiDEPARTM

How do you want to display the fields?

FF

Fields to appear on display

Select both fields

 

     The template will display Identifiers for your fields.

f.  Press the Finish button once you have answered all questions.

     The template replaces the default code in your new form. The form is complete and ready for compilation. It is not necessary to change the source RDMLX.

g.  Select the Design view. Reposition the buttons (select as a group and use Ctrl+Cursor keys.) and resize the form.

 

2.  Next, compile your form.

a.  Select the Home ribbon if necessary.

b.  Press the Compile button. Compile will automatically save the form.

c.  Review the Compile tab to ensure that the compile completed successfully.