Calendars
A calendar is an entity type that allows the developer to display the app’s data in a calendar-like view. A calendar view can combine filters, one or more event layers, and predefined durations that control how the time axis is displayed.
Calendar views are useful when users need to understand data by date or time, such as activities, appointments, reservations, tasks, or any other records that have a start and end date.
How to use
flowchart LR
A((Start))
B[Create calendar]
C[Add filters]
D[Add layers]
E[Add duration]
F[Add calendar to menu]
G((End))
A-->B
B-.->C
B-.->D
B-.->E
C-.->F
D-.->F
E-.->F
F-.->G
In order to create or edit calendars, open the Develop app, click the main menu and select Calendar views. In the page that opens, click the Add button, or select an existing calendar and click the Edit button.
After the calendar is configured, add it to a menu so users can open it from the application navigation.
Designer
Fields in the sidebar:
Module
The module to which the calendar view belongs. This field is optional.UUID
The unique global identifier for the calendar view.
This field is automatically generated by the Link system module. It is optional, but omitting it will make the calendar view unsendable to another server.
The following diagram describes the entity used by this designer:
erDiagram
ui_view_calendar {
string name "Name"
string title "Title"
string uuid "UUID"
integer has_resources "Has resources"
string slot_duration "Slot duration"
string max_time "Max time"
integer last_day "Last day of week to show"
string min_time "Min time"
integer first_day "First day of week to show"
integer read_only "Read Only"
string slot_duration_time "Slot duration time"
integer hide_default_durations "Hide default durations"
integer id_ui_module FK "Module"
}
ui_view_calendar many--one ui_module : ui_view_calendar_ui_module
ui_view_calendar one--many ui_view_cal_duration : ui_view_calendar_ui_view_cal_duration
ui_view_calendar one--many ui_view_calendar_filter : ui_view_calendar_ui_view_calendar_filter
ui_view_calendar one--many ui_view_calendar_layer : ui_view_calendar_layer_ui_view_calendar
CALENDAR tab
The Calendar tab defines the main calendar settings: the internal identifier, the user-facing title, the visible time range, and the default interaction behavior.
- Name - The internal identifier of the calendar configuration. It is used by the application to identify the calendar view.
- Title - The title displayed to users in the interface.
- Has resources - Enables resource-based calendar views. This is intended for calendars that display events grouped by resources, such as employees, rooms, tables, equipment, or similar schedulable items.
- Hide default durations - Hides the standard duration views. When enabled, the calendar does not show the default views such as Month, Week, Day, or Agenda; only the custom views configured in the Duration tab remain visible.
- Min time - The first time displayed in day and week views. For example,
08:00displays the calendar starting from 08:00. - Max time - The last time displayed in day and week views. For example,
16:00limits the visible time range to entries before 16:00. - Slot duration - The size of one time unit displayed in the calendar. For example,
00:30:00displays the day or week grid in 30-minute slots. - First day of week to show - The first visible day of the week. Use
1for Monday,2for Tuesday, and so on. - Last day of week to show - The last visible day of the week. Use it together with First day of week to show to limit the days displayed. For example, first day
1and last day5display only working days from Monday to Friday. - Read Only - Makes the calendar view read-only. When enabled, users can view events but cannot move them by drag and drop.
- UUID - The unique identifier of the calendar configuration row in the database.
Note: Calendar views do not display Sunday.
FILTERS tab
Click the Add button to add filters and the Delete button to remove filters.
Fields for filters:
The Filters tab configures the filters applied to the collection of records fetched by the calendar layers. Calendar filters work the same way as filters in Search Views. Unlike Search View filters, which apply to a single collection, calendar view filters apply to all collections across all calendar layers.
- Title - The title of the input field displayed to the user.
- Argument name - The name of the argument used by the filter.
- Input type - The input type displayed to the user.
- Catalog - The catalog used by list-based input types.
- Operator - The filter operator.
- Property name - The property on which the operator is applied.
- Default value - The initial default value.
- UUID - The unique identifier of the filter row in the database.
The following diagram describes the entities used by this tab:
erDiagram
ui_view_calendar_filter {
string title "Title"
string argument_name "Argument name"
string property_name "Property name"
string default_value "Default value"
string uuid "hidden"
integer id_ui_filter_operator FK "Operator"
integer id_ui_catalog FK "Catalog"
integer id_input_type FK "Input type"
integer id_ui_view_calendar FK
}
ui_view_calendar_filter many--one ui_input_type : ui_input_type_ui_view_calendar_filter
ui_view_calendar_filter many--one ui_catalog : ui_catalog_ui_view_calendar_filter
ui_view_calendar_filter many--one ui_filter_operator : ui_filter_operator_ui_view_calendar_filter
ui_view_calendar_filter many--one ui_view_calendar : ui_view_calendar_ui_view_calendar_filter
LAYERS tab
Click the Add button to add layers and the Delete button to remove layers.
Fields for layers:
The Layers tab configures the calendar data source. A layer defines which records become events, how those events are displayed, and what happens when the user opens or interacts with an event.
Layer details
- Name - The internal name of the layer. It is used in configurations.
- Description - A description for administrators or developers.
- Color - The default color of events from this layer.
- Calendar view - The calendar where the layer is displayed. For example,
calendarActivities. - Detail property - An additional property from the fetched entity that can be used as event detail text.
Event
- Event ID property - The property that contains the unique event identifier.
- Event detail property - The property that contains the representative event text shown to users.
- Start date property - The property that contains the event start date and time.
- End date property - The property that contains the event end date and time.
Resource
Resource fields are used when the calendar displays events grouped by resources.
- Resource ID property - The property that links the event to a specific resource.
- Resource text property - The property displayed as the resource label, such as an employee name, room name, table, or equipment name.
- Resource color property - The property used to color events associated with the resource.
Actions
- Edit view - The edit view opened when the user clicks an event.
- Workflow - The workflow that can be executed for event interactions such as click, create, move, or edit, depending on the application configuration.
- UUID - The unique identifier of the layer configuration row in the database.
The following diagram describes the entities used by this tab:
erDiagram
ui_view_calendar_layer {
string name "Name"
string description "Description"
string color "Color"
string detail_property "Detail property"
string event_id_property "Event ID property"
string start_date_property "Start date property"
string end_date_property "End date property"
string resource_id_property "Resource ID property"
string resource_text_property "Resource text property"
string resource_color_property "Resource color property"
string31 fetch "Fetch"
string uuid "hidden"
integer id_ui_view_calendar FK "Calendar view"
integer id_ui_view_edit FK "Edit view"
integer id_ui_wf FK "Workflow"
}
ui_view_calendar_layer many--one ui_view_calendar : ui_view_calendar_layer_ui_view_calendar
ui_view_calendar_layer many--one ui_view_edit : ui_view_calendar_layer_ui_view_edit
ui_view_calendar_layer many--one wf : ui_view_calendar_layer_wf
DURATION tab
Click the Add button to add durations and the Delete button to remove durations.
Fields for durations:
The Duration tab defines the custom calendar views available to users. A duration controls how much time is visible, how the time axis is divided, and which header rows are displayed.
- Text - The label displayed to users for this calendar view. Examples:
Month,6 months,Year. - Duration - The amount of time covered by the view.
- Duration type - The unit used by Duration. Examples:
months,years. - Slot format row 1 - The first row displayed in the time-axis header. Each configured row becomes a separate level in the header.
- Slot format row 2 - The second row displayed in the time-axis header.
- Slot format row 3 - The third row displayed in the time-axis header.
- Slot duration - The size of each time cell in the timeline. For example, slot duration
1with slot duration typedaysmeans that each slot represents one day. - Slot duration type - The unit used by Slot duration. Example:
days. - Is selected - Marks the duration as the initial selected view when the calendar opens.
Common slot format values:
| Format | Meaning |
|---|---|
ww | Week number in the year |
dd | Day in short numeric format |
yy | Year in short numeric format |
HH:mm | Time in 24-hour format |
Duration examples:
| Text | Duration | Duration type | Interpretation |
|---|---|---|---|
| Month | 1 | months | Shows one month |
| 6 months | 6 | months | Shows six months |
| Year | 1 | years | Shows one year |
The following diagram describes the entities used by this tab:
erDiagram
ui_view_cal_duration {
string label "Text"
integer duration "Duration"
integer id_ui_view_cal_duration_type FK "Duration type"
string slot_row1_format "Slot format row 1"
string slot_row2_format "Slot format row 2"
string slot_row3_format "Slot format row 3"
integer slot_duration "Slot duration"
integer id_slot_duration_type FK "Slot duration type"
integer selected "Is selected"
integer id_ui_view_cal_view_type FK "View type"
string uuid "hidden"
integer id_ui_view_calendar FK
}
ui_view_cal_duration many--one ui_view_calendar : ui_view_calendar_ui_view_cal_duration
ui_view_cal_duration many--one ui_view_cal_duration_type : ui_view_cal_duration_ui_view_cal_duration_type
ui_view_cal_duration many--one ui_view_cal_duration_type : slot_type_1
ui_view_cal_duration many--one ui_view_cal_view_type : ui_view_cal_duration_ui_view_cal_view_type