GRD_INVHCP Grid Component

Purpose

The GRD_INVHCP grid component displays a list of orders placed by a customer. The component is part of the SALESHIST.A5W page and is intended for customer use.

GRD_INVHCP in the Grid Builder [Picture]

GRD_INVHCP in the Browser [Picture]

Description

The GRD_INVHCP component is a read-only tabular grid based on the invoice_header table. The order of its records is set by the expression invert(cdate(Date)). The DETAIL button is defined by Freeform template code under the inv_no control. Clicking this button opens the INVDETAIL.A5W page as a popup, using inline Javascript on the button event. INVDETAIL.A5W displays the invoice information for the selected invoice_header number.

The GRD_INVHCP component has a calculated field that allows the invoice number to be placed on the grid twice: once for display, and once for linking to the INVDETAIL.A5W page.

inv_no = Invoice_Number

Containers

SALESHIST.A5W

Notable Grid Control Property Settings

Control

Property

Description

Inv_No

Column Properties > Freeform layout

"True"

Column Properties > Freeform template

Clicking the Detail button uses Javascript to open the INVDETAIL.A5W page in a popup window and display the order information for the invoice specified by inv_no.

<input name="Open" type="button" value="Detail" onclick="window.open('invdetail.a5w?inv={Inv_No}', 'mywindow', 'status=0, toolbar=0, location=0, menubar=1, resizable= 0, scrollbars=1, height=480, width=640, left=160, top=215')"/>

See Also

Web Publishing Components

Supported By

Alpha Five Version 7 and Above