Element Details: Data+Calendar
 Back


Available in: Logi Info Source code name: DataCalendarIntroduced in: v9.2.37

The DataCalendar displays data in a monthly or weekly calendar. The data comes from a DataLayer element, with the information for each day shown inside each cell of the calendar.

Set the DataColumn attribute to a column in the DataLayer that contains a date. This is how the DataCalendar determines the day for each row. It's important that the format of the DataColumn is in either ISO or "YYYY-MM-DD" format.

Set the TimePeriod attribute to Month or Week to display a calendar with a full month or just a week.

Set the WeekdayFilter for a calendar that skips certain weekdays, such as weekends.

Calendars normally start with Sunday as the first day of the week. The DataCalendar works with the FirstDayOfWeek attribute which can be set to another day in the settings' Globalization element.

DataCalendar defines certain Cascading Style Sheet (CSS) classes. These help with colors, font sizes and spacing. There are CSS classes for calendar captions, days of the month, the current date, and for days outside the current month. You can over-ride these classes by adding them to your own CSS file. The DataCalendar's built-in CSS file is rdTemplate\rdCalendar\rdDataCalendarStyle.css.

Element Group:Data Tables



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
CalendarCaptionFormat
UserDefined
None
Set the format to "None" to prevent display of the caption row.
CellSpacing
UserDefined
The width, in pixels, of the space between table cells.
Class
UserDefined
Sets the Cascading Style Sheet class used by the element. When set, this class will also be used by all child elements that don't have their own class. The class should be defined in the report's style sheet file.
DataCalendarDate
UserDefined
Sets the current date for the calendar. The calendar will display the appropriate month or week for that date.
DataColumn
UserDefined
(Required) The name of a data field/column returned from the DataLayer.
DayCaptionFormat
UserDefined
None
Sets the format for day numbers that appear in each cell. Set the value to "None" to prevent display of the day numbers. The default value is "%d".
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
Layout
Fixed
Auto
Determines if the table layout is automatic or fixed. The default is automatic. With fixed, the column layout is determined with the first row, instead of adjusting column widths by examining every row. This can help with formatting issues, and can also significantly improve large table performance.
SecurityRightID
UserDefined
When entered, access to this element can be controlled with Logi security. Supply the ID of a right defined in the applications settings’ Security element. Only users that have a right in the SecurityRightID will be able to see the element. Note that when rights come from RightFromRole elements under Security/UserRights, and this element's SecurityRightID does NOT match any of the Right IDs defined in the Settings definition, then the user DOES have access. But when Right IDs are instead derived from RightsFromDataLayer or RightsFromRoles elements, and the user DOES NOT have a matching Right, then the user DOES NOT have access. You can enter multiple right IDs, separated by commas. In this case, the user sees the element if he has any one of the Rights.
TableBorder
UserDefined
Draws a border around the table. Set this value to the number of pixels of the border width. A value of 1 draws a thin border.
TimePeriod
Week
Month
The time period.
WeekdayCaptionFormat
None
dddd
ddd
dd
Sets the format for weekdays that appear across the top of the calendar. Set the value to "None" to prevent display of the weekdays row. The default value is "dddd" for the Data Calendar and "dd" for both the Input Date and the Date Picker elements. "dddd" shows the full weekday name, i.e "Monday", while "ddd" displays an abbreviated weekday name as "Mon". Use "dd" to display the weekday name as "M".
WeekdayFilter
UserDefined
Sets the list of weekdays to appear in the calendar. Specify a comma-delimited list of weekday numbers, starting with 0 for Sunday. For example, to show a calendar with Mondays through Fridays, specify "1,2,3,4,5". The default value is "0,1,2,3,4,5,6", showing all weekdays.
Width
UserDefined
The width of the element.
WidthScale
px
%
The width scale of the element. Value can be "px" for pixels, or "%" for percentage of the available width.



PARENT ELEMENTS

Click element to drill down for more information.

Body
Column Cell
Division
Fieldset Box
HTML Tag
Page Footer
Page Header
Panel Content
Popup Panel
Rectangle
Report Footer
Report Header
Responsive Column
Tab Panel


CHILD ELEMENTS

Click element to drill down for more information.

Data Calendar Day
Data Calendar Paging
DataLayer.Bookmarks
DataLayer.Cached
DataLayer.CSV
DataLayer.Definition List
DataLayer.Directory
DataLayer.Excel
DataLayer.Fixed Format File
DataLayer.Google App
DataLayer.Google Spreadsheet
DataLayer.JSON
DataLayer.LDAP
DataLayer.Linked
DataLayer.Mongo Find
DataLayer.Mongo Map Reduce
DataLayer.Mongo Run Command
DataLayer.Plugin
DataLayer.REST
DataLayer.Scheduler
DataLayer.SP
DataLayer.SQL
DataLayer.Static
DataLayer.Twitter
DataLayer.Web Feed
DataLayer.Web Scraper
DataLayer.Web Service
DataLayer.XML
Gauge.Bar
Generated Element Plugin Call


 Back to top


 Chart Debug