Step 4 Banner Web Component

LANSA Web Functions

Step 4. Banner Web Component

In this step, you will add an advertising banner to the standard header used in your functions. This banner will link to the Visa, MasterCard and LANSA Web Site. (Note: You may not be able to test the links if your Web Server does not have access to the Internet.)

1. Create a new component as follows:

Name:

iiiBANNER

Type:

BANNER

 

 

2.  Press the Continue button and enter the following:

Type:

Image

Mode:

Not Applicable

 

 

3.  Press the OK button and enter the following:

Description:

Function Banner

Update frequency:

Update every visit

Display link in new window:

Check the box

 

 

4.  Using the Add button, enter the following data for the banner items:

Set

Image

Description

URL

0

LANSA.GIF

LANSA

http://www.lansa.com

1

VISA.GIF

Visa

http://www.visa.com

2

MCARD.GIF

MasterCard

http://www.mastercard.com

 

 

5.  Press OK to save the component.

6.  Open the iiiPROC03_STDHEADER page.

7.  Include the banner component at the bottom of the function header by inserting the following LANSA tag:

<RDML COMPONENT="iiiBANNER"> 

 

     Note: The component names are case sensitive so be careful to use the correct spelling of the component .

8.  Test your changes by executing your iiiFN05 or iiiFN07 function. You should see a new banner each time you perform a new search. (Note: You may not be able to test the links to other Web sites if your Web Server does not have access to the Internet.)