It is possible to add a datetime field to a window and not populate it with data by doing the following:
1. Start the Window Manager component, and open the required window.
2. Expand the Attributes tree, then add the attribute to the window.
3. Expand the Properties grid for the attribute.
In addition to the standard properties for the control, there are specific Date/Time properties:
Date Time Range Operator – Specifies the type of check that is made when the timespan validation is carried out. The default is After.
Date CheckBox – Specifies if the DateTime control is to display the check box (allowing a blank time to be set). If you set this to True, then another property appears:
Date Checkbox Checked – Specifies whether the check box is checked by default.
Pre 7.4 version, you will need to select a value from the drop down for DateTime Display Type before the options become available to have a Date CheckBox.
4. Set the 'Date Checkbox' property to True, the 'Date Checkbox Checked' property will now be visible
5. Set the 'Date Checkbox Checked' preoperty to False as you do not want the date field active by default.
6. Save the window
When you open the window you will notice that the checkbox next to the date field is not checked and the date field is greyed out but displays todays date (the displayed date is not actually stored in the datbase).
If you want to set a date in the field you would first need to check the checkbox next to the field to activate it and then select a date.