Step 2. Create a WEBEVENT Function

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

1.  Create a new LANSA process named iiiPROC01 Test Process (WEBEVENT), where iii are your initials. (If the process already exists, select a different set of characters for iii.)

2.   Enable your iiiProc01 process for web. If you need to know how, refer to Web Enabling a LANSA Process.

3.  Working with your iiiPROC01 process, create a new function named iiiFN1 Display Sections WEBEVENT. Be sure to specify that the function is generated from an Application Template.

4.  Select the FRWEBENQ01 template and answer the questions as shown below:

TEMPLATE QUESTION

ANSWER

Enter the name of the file to be used

SECTAB

Select keys to use for search

Select DEPTMENT

Fields to appear in browse list

Select DEPTMENT, SECTION, SECDESC

How many entries per page

5

Fields to appear in detail

Select all fields

What is the unique 2 character prefix

iii (where iii are your initials)

 

  

5.  You do not need to edit any of the RDML in this function.

6.  Compile your iiiFN1 function.