Calendar dependencies can be defined for any widget. They are used to control whether a widget should appear in a report or not. For example, a widget may only be required to appear in a report if it's the first day of the month.
Setting a caldep value of 'firstofmonth' (if set in the MCS calendar) for a widget will ensure it only gets processed if 'firstofmonth' is true on the day the report is viewed.
The caldep setting takes a maximum of two arrays. All calendar dependencies must be true in order to flag a widget a 'good to go'. Some examples are below.
1. Use the syntax below to set a widget with no dependencies (meaning it will always be processed).
caldep: [[]]
2. This example has two dependencies. Both have to be true for the widget to be processed.
caldep: [
['tuesday','december']
]
3. This example has two dependencies in TWO arrays. This is know as an AND/OR condition. ALL dependencies in EITHER array have to be true for the widget to be processed.
caldep: [
['tuesday','december'],
['tuesday','january']
]