DLG_HDATE Dialog Component

Description

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.

 Discussion

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

 Notable Component Property Settings

 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 = " Date can't be after Today "
    ' Use ' ' instead of a space for html
End If

See Also