Calendar

The control Calendar is used to display and manage exceptions to a schedule and select a date.

Use

Use on any page where a date is to be selected.
If a Schedule object is passed to the BaObject attribute in the EventCalendar display mode, the exceptions of a time schedule can also be displayed or edited.

Features

Provides two different display modes, the ability to manage exceptions and a color highlighting of related exceptions when the mouse pointer is over them.

DatePicker

A space-saving view of a calendar. Returns the selected date via an event.

Calendar 1:

EventCalendar

The EventCalendar is available in the month view and in the year view.

Month view

An event-oriented view of a calendar. It returns the selected date via an event and offers the option to manage an exception by clicking on it.

Calendar 2:

Year view

An overview of all days of the year with marking of the days on which at least one exception is active. Selecting a month changes to the month view.

Calendar 3:

Menu

In the upper right corner there are buttons for quick access and other actions.

Calendar 4:

Quick access:

Other actions:

Local exceptions

Entries in the aException collection of a Schedule object (e.g. FB_BA_SchedM) are regarded as local exceptions.

Calendar 5:

In the upper area, you can set the date or the repetition type of the local exception. Below this, the time periods with the applicable values can be set.
The automatic numbering of the local exceptions starts at 1.

Global exceptions (calendar reference)

Entries in the aCalendar collection of a Schedule object (e.g. FB_BA_SchedM) are regarded as global exceptions.

Calendar 6:

For global exceptions, only the time periods and applicable values can be defined. The date or the repetition type must be configured in the referenced Calendar object (e.g. FB_BA_Cal).
The automatic numbering of the global exceptions starts at 100.

Attributes

The control inherits from BaseControl and thus has the same attributes. In addition, there are the following attributes.

BA

BaObject

tchmi:framework#/definitions/Symbol

To use the generic functionalities of TcHmiBa. It links a single object or a complete view (including children) to the control.

Calendar 7:

You can find more detailed information about the generic possibilities of TcHmiBa under Generic HMI.
The attribute is not applicable to all controls.

Calendar 8:
Calendar 9:
Calendar 10:

Common

DisplayMode

Determines the display mode of the calendar.

DisplayView

Determines the view of the calendar in the EventCalendar display mode.

ShowMenu

Sets the visibility of the menu.

Events

Event

Description

onDateChanged

Returns the selected date.