8 4 3 Step 2 Create a Test Process and Function

Installing LANSA on IBM i

8.4.3 Step 2. Create a Test Process and Function

In this step, you will create a test process named iiPROC00 Test Process and a test function named iiFN000. The test function will use the FRENQ02 template to create a function which can be used to display information in the Department (DEPTAB) and Section (SECTAB) files.

1.  From the LANSA Main System Menu (Advanced), select the Work with Processes option.

2.  Press function key F6 to create a new process. Enter the following details (and then press Enter):

New process name

iiPROC00 (where ii are your initials)

Description

Test Process

 

 

3.  From the Work with Processes menu, use option 2=Review/Change Functions to work with your iiPROC01 process.

4.  Press the F6 function key to create a new function. Enter the following details, then press Enter:

New function name

iiFN000  (where ii are your initials)

Description

Display Sections.

New function type

1  (Generate from Application Template)

 

 

5.  When the Application Template Selection screen appears, scroll down and select the FRENQ02 Header/Detail Inquiry template. Answer the template questions as shown in the table below. Use the online help if you need additional information about the answer to each template question.

TEMPLATE QUESTION

ANSWER

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

DEPTAB

Select related files to be used

Select Section code table SECTAB

Do you want this function to be part of an action-bar style process?

N

Fields in Header Area

Select all fields

Fields in Detail/List Area

Select DEPTMENT, SECTION, SECTDESC, SECPHBUS

Design the fields in the header are DOWN the screen or ACROSS the screen?

DOWN

 

 

6.  Your function is now created and saved. It is ready for compilation. It is not necessary to edit the RDML.

7.  Press F12 to exit Work with Functions. The status of your RDML functions will be displayed. Simply press Enter or F12 to return to the Work with Processes menu.

Go to 8.4.4 Step 3. Compile the Test Function.