TGRDL_HIST Tabbed GridLinker Component

Purpose

The application administrator uses the TGRDL_HIST tabbed gridlinker component on the ASWSALESHIST.A5W page to review overall sales history.

[Picture]

Description

The TGRDL_HIST tabbed gridlinker component is composed of three grid components. The GRD_TITLEHIST grid is the parent. It links one-to-many to the GRD_HISTCUST and GRD_HISTQUAN grid components with the link field.

Normally, a tabbed gridlinker component displays data from true parent and child tables, organized as they would be in a set. Changing the parent grid record selection automatically changes the selection of records in the child grids. In this case, the parent grid is based on the dummy table, which contains a single record. The common link between the three grids is a calculated field named link, which has a value of 1. The design hides the link calculated field. Finally, we removed the code that displays the parent grid from the page template. This technique allowed us to place totally unrelated grids into the tabbed gridlinker.

The GRD_HISTCUST and GRD_HISTQUAN grid have this override. The DLG_HDATE dialog component resets DBF.filter when the user selects a date.

DBF.filter = ""

Container

ASWSALESHIST.A5W

Contains

GRD_HISTCUST, GRD_HISTQUAN

Notable Component Property Settings

Control

Property

Description

grd_titlehist

Grid Properties > Tab button position

"Top"

Grid Properties > Customize page layout

"True"

Grid Properties > Page layout template

Refer to Page Template.

Grid Properties > Initial child to display

"grd_histquan"

Grid Properties > Auto-scroll to child grid

"True"

grd_histcust

Grid Properties > Tab button (selected)

<strong><font color=#800000 size="3">Sales by Customer</font></strong>

Grid Properties > Tab button (not selected)

<font size="2">Sales by Customer</font>

grd_histquan

Grid Properties > Tab button (selected)

<strong><font color=#800000 size="3">Sales by Customer</font></strong>

Grid Properties > Tab button (not selected)

<font size="2">Sales by Quantity</font>

Page Template

We made only minor changes the page template. He removed the code that inserts and displays the parts of the parent grid component.

Before

After

<table>

<!-- begin table for parent Grid -->

<tr>

<td>{ParentGrid_Echo_Part}</td>

</tr>

<tr>

<td>{ParentGrid_UpdateErrors_Part}</td>

</tr>

<tr>

<td>{ParentGrid_Search_Part}</td>

</tr>

<tr>

<td>{ParentGrid_Grid_Part}</td>

</tr>

<tr>

<td>{ParentGrid_DetailView_Part}</td>

</tr>

</table>

!-- parent grid section removed -->

<!-- begin table for parent Grid -->

 

The remainder of the page template was unchanged.

See Also

Web Publishing Components

Supported By

Alpha Five Version 7 and Above