Step 2 Create a Process and a Function

Visual LANSA

Step 2. Create a Process and a Function

VED010 - Format Source Code

In this step you will create a new Process iiiPRO01. Processes are containers used to group together a set of functions. When executed, processes appear as a menu. Processes are also used to control characteristics of the functions that they contain.

After creating the process, you will create a function belonging to the process. Functions are programs that contain RDML code. You will use this sample function, along with the sample form, to learn the basics of controlling the display of LANSA code in the editor. The actual meaning of the code is not important.

1.  First, create a new process from New in the File menu, and selecting Process:

a.  Enter a Process name of iiiEditorTesting (where iii=your initials) or DEMPRO01 if you are using a trial version of Visual LANSA.

b.  Enter a Description of Demo Process.

c.  Uncheck the Open in editor option.

d.  Press the Create button.

2.  Use File menu / New to create a new function:

a.  Enter a Process name of iiieditortesting (where iii=your initials) or DEMPRO01 if you are using a trial version of Visual LANSA . Note that this name will be completed as you type, if a match is found in the Repository.

b.  Enter a Name of iiiDeptQuery (where iii=your initials).

c.  Enter a Description of Query Departments.

d.  Select Template FRENQ01 – Flat Screen Enquiry.

e.  Do not select Enabled for RDMLX.

f..  Open in editor will be automatically selected.

g.  Click the Create button.

h.  Complete each Wizard/Template Prompt as shown and click Next.

Prompt

Enter

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

DEPTAB

Do you want this function to be part of an ACTION-BAR style process

N

Fields to appear on Display

DEPTMENT

 

DEPTDESC

Design fields on the enquiry panel DOWN or ACROSS the screen

DOWN

 

i.  Click Finish to create the RDML code.

5.  The Source tab showing the RDML code for this function will be shown.