Calendar data sources
A calendar data source can be used to generate a calendar or to group data in other data sources, such as all the transactions in a month. This type of data source contains objects based on time periods between two dates. For example, 12 objects for all of the months in a year or 168 objects for all of the hours in a week.
Calendar data sources are generated at runtime. The feature specific set of object properties to extract date information from each time period object. The values in these properties reflect the calendar locale for the active language as specified under Internationalization.
Usage
To add a calendar data source to an app:
Open the app and navigate to Data.
In the App Data panel, click the down arrow icon.
Select Add Calendar Data Source.
To configure the data source you must specify a From datetime value, a To datetime value, and select a Resolution. The from and to dates specify the boundaries of the calendar. The resolution is the time periods that the data source will be broken into and each time period will be represented by an object.
For general information about working with dates, see Date and time.
General properties
Property | Description |
---|---|
Name | A descriptive name for the data source. |
Object Class | Read only
Always |
Cardinality | Read only
Always |
From | The start date of the calendar. |
To | The end date of the calendar. |
Resolution | The time periods the calendar should be split into. The options are:
|
Description | A longer description of the data source. For your own reference. |
Runtime properties
Runtime properties for calendars function in the same way as for object class data sources.
Data source object properties
Data source object properties are built-in properties available for each object in the data source. Each time period is represented by an object. The values reflect the calendar locale for the active language as specified under Internationalization.
Property | Data type | Description |
---|---|---|
DateTime Value | Datetime | The start of the time period. |
Day | String | The day of the week of DateTime Value. |
Day of Month (1–31) | Integer | The day of the month of DateTime Value. |
Day of Week (ISO, 1–7) | Integer | The day of the week of DateTime Value, in accordance with the ISO 8601 standard. 1 = Monday and 7 = Sunday. |
Hour (0-23) | Integer | The hour, using the 24-hour clock, of DateTime Value. This will always be |
Is Not Selected | Boolean | The object is not selected. |
Is Selected | Boolean | The object is selected. |
Month (1–12) | Integer | The month number of DateTime Value. |
Month Name | String | The month name of DateTime Value. |
Period End | Datetime | The end of the time period. |
Week Number (ISO) | Integer | The week number of DateTime Value, in accordance with the ISO 8601 standard. |
Year | Integer | The four-digit year of DateTime Value. |
Data source attributes
Data source attributes for calendars are the same as for object class data sources except that Disabled, Limit, Skip, Subscribe To Updates, and Total Object Count are not available.
Last updated