8.6 Browse List Graphic Variables

LANSA Web allows you to customize browse lists in your Web function by using graphic variables. It is important to note that the HTML generated for browse lists is controlled by LANSA Web and cannot be manually edited. The use of graphic variables is an important method for customizing the presentation of the browse lists in Web Functions.

If a specific browse list graphic variable exists, LANSA Web will use it. Otherwise, it will use the default graphic variable. For example, you may wish to customize the background colors for alternate rows used for a browse list named EMPLIST. In this case, you will need to create a specific graphic variable *LW3BLACB_EMPLIST. This variable is used instead of the *LW3BLACELLBCOLOR variable.

Reminder: Graphic Variables are defined at the LANSA system level, including specific graphic variables. When you create a graphic variable for a specific browse list name, it will impact all browse lists with that name in all partitions.

HTML Browse List Customization

Default Graphic Variable

Specific Graphic Variable

Description

*LW3BLACELLBCOLOR

*LW3BLACB_<list name>

Background color for alternate rows in browse lists.

If you want to have a transparent background, specify *NONE as the value of this variable.

*LW3BLACELLFCOLOR

*LW3BLACF_<list name>

Foreground color for alternate rows in browse lists.

*LW3BLCELLBCOLOR

*LW3BLCCB_<list name>

Background color for entries in browse lists.

If you want to have a transparent background, specify *NONE as the value of this variable.

*LW3BLCELLFCOLOR

*LW3BLCCF_<list name>

Foreground color for entries in browse lists.

*LW3BRWLSTMISC

*LW3BLMS_<list name>

Miscellaneous attributes to be used in conjunction with the <table> tag for setting up a browse list. The attributes defined for this variable will be appended as attributes of the <table> tag for browse list.

You can override the default setting of the border, cellpadding and cellspacing attributes by using this variable.

*LW3BRWLSTSELECT

*LW3BL_<list name>

The contents of this variable allows you to disable:

  • Borders around the browse list.
  • Column headings.
  • Selection image.
  • Borders around empty cells in the browse list.

To turn off any of the above features, you will need to define the variable as a Text variable. The content of the variable is then set to be:

*Noxxxxx

where xxxxx can be up to five characters, identifying the feature to disable.

If you want to disable the border around the browse list, specify a ‘B’ character.

If you want to disable the column heading in the browse list, specify a ‘C’ character.

If you want to disable the selection image, specify an ‘I’ character.

If you do not want a <table> HTML tag around your browse list, specify a ‘T’ character.

If you do not want borders displayed around empty cells in your browse list, specify a ‘P’ character.

Note that if you disable the selection image, none of the columns in the browse list will be hyperlinked, even though you have enabled LANSA Web to allow selection from any column in a browse list. For example, *NOB would switch borders off.

*LW3BRWLSTSELIMAGE

*LW3BLI_<list name>

Default selection image for browse lists.

*LW3COLHDGBCOLOR

*LW3BLBC_<list name>

Background color for column headings for browse lists.

If you want to have a transparent background, specify *NONE as the value of this variable.

*LW3COLHDGFCOLOR

*LW3BLFC_<list name>

Foreground color for column headings for browse lists.

 

 

Note: LANSA Web disables the selection image column in browse lists for WEBEVENT functions. This is because WEBEVENT functions terminate as soon as the display command is processed. This means that the function is no longer available to process your selection.