Step 4 Create a Link Component

LANSA Web Functions

Step 4. Create a Link Component

In this step, you will create a page component that will appear as a button to link to another function.  The button will use the HandleEventDeptSect  JavaScript function created in Step 3 to set the value of the work fields and then call the next function. 

1.  Using the LANSA for the Web editor, create a new HTML page. 

2.  When the new page appears, delete all of the default HTML code.

3.  Add the following lines to the page (where iii is your course assigned ID):

<INPUT TYPE="button"  VALUE="Click Here"  NAME="button1"

onClick="HandleEventDeptSect('iiiPROC03','iiiFN11',

'<RDML MERGE="DEPTMENT">','<RDML MERGE="SECTION">');">

 

     NOTE: there is no space following any of the commas. Remember to use uppercase characters for your iii identifier.

4.  Save your document as iiiLNK with description Link Component.

5.  Using the LANSA for the Web Editor, open the Maintain Components window.

6.  Press Add, to add a new component as follows (where iii is your course assigned ID):

 Component

iiiLNK

Type

Page

 

 

Description

Link Component

Page

iiiLNK

Mode

OUTPUT