Introduction
Welcome to the RRule.js Scheduler documentation! This guide will help you integrate the powerful rrule.js library into your OutSystems applications to handle complex scheduling and recurring events with ease.
Whether you’re setting up daily, weekly, monthly, or custom interval tasks, this component simplifies the process and enhances your productivity.
Step-by-Step Guide
1- Load the RRule.js in your screen from the scripts resources:
2- Drag and drop the client action and fill the input paramenters:
Input parameters:
Frequency (Mandatory): Options available, you can use JUST one:
DateStart (non mandatory): The recurrence start. Besides being the base for the recurrence, missing parameters in the final recurrence instances will also be extracted from this date. If not given, new Date will be used instead.
DateEnd (non mandatory): If given, this must be a Date instance, that will specify the limit of the recurrence. If a recurrence instance happens to be the same as the Date instance given in the until argument, this will be the last occurrence.
Timezone (non mandatory): If given, this must be a IANA string recognized by the Intl API. See discussion under Timezone support: https://github.com/jkbrzt/rrule#timezone-support
CountOccurences (non mandatory): How many occurrences will be generated.
Interval (non mandatory): The interval between each freq iteration. For example, when using RRule.YEARLY, an interval of 2 means once every two years, but with RRule.HOURLY, it means once every two hours. The default interval is 1.
WeekStartDay (non mandatory): This will affect recurrences based on weekly periods.
The week start day, you can send an integer: Monday = 0; Tuesday = 1; Wednesday = 2; Thursday = 3; Friday = 4; Saturday = 5; Sunday = 6
The default week start is Monday.
WeekDaysSelected (non mandatory): Week days selected
MonthsSelected (non mandatory): Months Selected
Output parameters:
Error: Return error if it exists
RecurrenceResult: List of dates available and the recurrence text