OCRotationV2 - Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The OCRotationV2 script include is an extension of OCRotation script include, which is used by Fullcalendar.io and the DHTMLX On-Call Calendar.
Use this script include to obtain the schedule time span between two dates that are further filtered by groups, rotas, rosters, and users. You can also extend OCRotationV2 to add or modify behavior. This is part of On-Call Scheduling.
OCRotationV2 - getGroups()
Returns an array of groups that have active rotas.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array of group objects. Each contains the following attributes:
|
OCRotationV2 - getRostersByRotas(String rotaSysIds)
Returns an array of active rosters for a given rota ID.
Name | Type | Description |
---|---|---|
rotaSysIds | String | Comma separated list of rota sys_id (cmn_rota) values. |
Type | Description |
---|---|
Array | An array of rota objects. Each contains the following attributes:
|
OCRotationV2 - getRotasByGroup(String groupSysIds)
Returns an array of active rotas for a given group ID.
Name | Type | Description |
---|---|---|
groupSysIds | String | Comma separated list of group sys_id (sys_user_group) values. |
Type | Description |
---|---|
Array | An array of rota objects. Each contains the following attributes:
|
OCRotationV2 - getSpans()
Get the spans from the specified start date to the specified end date. If no start and end dates are provided, the start date defaults to a month before and the end date defaults to a month after the current time. You can also use the groups IDs, rota IDs, roster IDs, user IDs to further filter the spans.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Array | An array of spans. Each contains the following attributes: id, sys_id, table, rota_id, roster_id, user_id, text, description, color, textColor, start_date, end_date. |