AMT Help Files

Calendar

Description:

This is a Calendar object that contains a date value. At runtime, when clicking the calendar icon at the right of the object, a calendar is presented from which a date can be picked. At design time, a date value for the calendar object can be assigned or retrieved in the code with format yyyymmdd.

The initial value of the calendar is set to the current date, it can be set to blank by assigning 0 (zero) to the object, e.g. 'Calendar1 := 0', where Calendar1 is the name of the object. At runtime nothing will then be displayed in the calendar editbox.


AMT Screens

In AMT Screens a date value can be entered in the calendar editbox without separators for either the ddmmyyyy or mmddyyyy format (depending on the windows regional settings of the user), using separators is also allowed for those formats (e.g. dd-mm-yyyy or mm-dd-yyyy).

For formats starting with the year, separators are always needed when entering the date value.

Allowed separators are: spaces (e.g. 11 07 2017) hyphens (e.g. 11-07-2017) slashes (e.g. 11/07/2017) or dots (e.g. 11.07.2017).

If an invalid date value is entered, the calendar value will revert to the last valid value.

To remove a date from the calendar field, the calendar editbox needs cleared of all characters. The calendar value will then be set to 0 upon transmit.

When the user clicks on the calendar button of a calendar with the value 0 (zero) the current date will be selected initially while the month is displayed.

 

Lion Screens

In Lion Screens, the date value can only be typed per date element (e.g. dd, mm or yyyy). Switching between the date elements can be done either with the arrow keys on a keyboard or by a mouse click on the date element.

To remove a date from the calendar field, select the calendar editbox and press the Delete keyboard key. The calendar value will then be set to 0 upon transmit.

When the user starts to type in the editbox of a calendar with the value 0 (zero), initially the current date will be displayed and can then be edited. When the user clicks on the calendar button also the current date will be selected initially while the month is displayed.

 

Years without century

(Applies to AMT Screens and Lion Screens only)

If a date with only the last two digits for the year is entered into a calendar object at runtime (e.g. 11-12-27), the century will depend on the windows date format setting of the user. For windows 10 this can be found in windows settings (control panel) > 'Time & Language' > 'Region' > 'Additional date, time & regional settings' > 'Change date, time, or number formats' > 'Additional settings' > the 'Date' tab > Calendar.

Besides the two-digit year settings, the first day of the week of the calendar can also be set here.

 

Web Client

In the Web client a date value can be entered in the calendar editbox without separators only in the mmddyyyy format, using separators is also allowed (e.g. mm-dd-yyyy).

For formats starting with the year, separators are always needed when entering the date value.

Allowed separators are: spaces (e.g. 07 13 2017) hyphens (e.g. 07-13-2017) slashes (e.g. 07/13/2017) or dots (e.g. 07.13.2017).

If an invalid date value is entered, the calendar value will revert to the last valid value.

To remove a date from the calendar field, the calendar editbox needs cleared of all characters. The calendar value will then be set to 0 upon transmit.

When the user clicks on the calendar button of a calendar with the value 0 (zero) the current date will be selected initially while the month is displayed.



Toolbar button icon:

 

Properties:

 

Events:

 

Dynamic code properties: