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.
Description
The DLG_HDATE dialog component contains a text box control formatted as a popup calendar control and a submit button.
Container
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 = " Date can't be after Today " ' Use ' ' instead of a space for html End If |
See Also
Supported By
Alpha Five Version 7 and Above