DLG_HDATE Dialog Component

Purpose

The DLG_HDATE dialog component sets the "from" date to use in the filter expression that selects records for the GRD_HISTCUST and GRD_HISTQUAN grid components.

[Picture]

Description

The DLG_HDATE dialog component contains a text box control formatted as a popup calendar control and a submit button.

Container

ASWSALESHIST.A5W

Notable Grid Control Property Settings

Control

Property

Description

start_date

Control Settings > Data type

Set to "Date"

Textbox Properties > Date Picker

Set to TRUE.

Notable Component Property Settings

Property

Description

Submit/Reset Buttons > Submit button label

"Show History"

Freeform Edit Regions > Above Dialog

<strong><font face="Arial">Earliest Date</font></strong>

Event Code

This code was placed under the Server Events > Validate property.

If ctod(CurrentForm.Controls.start_date) > date()then

    CurrentForm.Has_Error = .t.

    CurrentForm.Error_Message = "&nbsp;Date can't be after Today&nbsp;"

    ' Use '&nbsp;' instead of a space for html

End If

See Also

Web Publishing Components

Supported By

Alpha Five Version 7 and Above