Generate Visual Component

Visual Web components can be used to enhance the presentation of your functions.

When you select Visual ... from the Generate Component option, the Generate Visual Component dialog box is displayed.


Specify the name of the Web component.

Visual Type

Select the required Type from the drop down list.

Repository Data

If you have selected a Visual Type of Drop Down, List Box or Radio Button, you will need to provide Repository-based information. LANSA will build the visual Web component from the data contained in the file you specify.


The name of the file. This file must be known to LANSA Repository on the host. The HTML generated is based on the data in this file.

Field for Value

The name of the field you want to use for the VALUE keyword in the resulting HTML. This is the field containing the data that will be returned to your application at the Server.

Field for Description

The description of the entry displayed to the user.

Use Library List

Select this option if you want to use the user profile's library list to locate the source file instead of the library associated with the file in the LANSA Repository.

Include blank entry

By default, a blank entry is generated which is used when evaluating the <RDML CHECKVALUE> tag. This sets the default field value to *BLANK. If you do not want to generate a blank entry for the component, deselect this option.

Static Data

If you are building a check box, you must enter the two values in this area.


The value for the checked state of the check box.


The description of the check box.

Form Element Name Override

If a name is provided it will be used as the name of the HTML form elements.

If not provided, the component name is used to name the form elements.


When you select the OK button, the Visual Web component will be generated automatically and the Web Component Registry updated to reflect the Web component. The component will be created as an input Visual Web component.

If a Web component of the same name already exists, the new Visual Web component will replace the existing Web component. The HTML associated with the existing Web component will be backed up before the new Web component is created.

Note: Make sure that you enter correct values for the fields in the Repository Data area, otherwise the component will not be generated.