Schedule Pages
-
- UpdatedAug 1, 2024
- 7 minutes to read
- Xanadu
- Building applications
A schedule page is a record that contains a collection of scripts that allow for custom generation of a calendar or timeline display.
Creation of timeline schedule pages requires understanding of the page/event flow and the ability to write client and server side JavaScript.
Schedule pages form
To access schedule pages, navigate to
.Timeline schedule pages
A Timeline Schedule Page is a specific record that contains configuration information for displaying time based points and spans in a "timeline" like fashion.
The timeline schedule page references a script include that extends from AbstractTimelineSchedulePage to perform dynamic modification to the timeline based on different events and conditions. Both the schedule page and the script include for timeline generation allow for extreme customization and their corresponding application programming interface (API) is documented below.

Applications that use schedule pages to generate time lines
- Project Management
- Maintenance Schedules
- Group On-Call Rotation
- Field Service Management
Timeline schedule page example
The following example demonstrates how to create a timeline schedule page with corresponding script include utilizing a majority of the API described above.
For this example we are going to create an Incident Summary Timeline for a project support manager to visualize all of the new incidents. All new incidents should be displayed as single points where the priority of the incident is distinguished by a different point icon. Additionally, all closed incidents should be displayed on the timeline in a separate group that shows the duration of the incident before it was closed. Since the Project Manager wants to be able to easily close new items that are resolved without using any form lists, we will handle the vertical move event allowing the new incidents to be dragged into the closed incident group or items within.
Schedule Page
- Name: Hardware Incidents
- Schedule type: incident_timeline
- View Type: Timeline
- Client Script:
Script Include
- Name: IncidentTimelineScriptInclude
- Active: Checked
- Client callable: Checked
- Script:
Screenshots / Results
- Navigate
to:
http://[YOURINSTANCE]:8080/show_schedule_page.do?sysparm_page_schedule_type=incident_timeline
Notice the bold text is the value of the schedule page Schedule type field.
- The page displays a timeline as specified by the schedule page and script include created.
A link to this page can be created and placed as a module or UI action as necessary.
Figure 2. Timeline Example Incident Preview - Attempting to move a closed incident anywhere displays the expected error message.
Figure 3. Timeline Example Error Moving - Moving the incident: I need more memory displays the following
confirmation box.
Figure 4. Timeline Example Confirm Close - Clicking the Cancel button closes the overlay. Clicking the
OK button actually updates the incident_state of the record and then
displays the following success box.
Figure 5. Timeline Example Close Success - After clicking OK, it is clear the incident is now listed in the Closed Incidents group.
Figure 6. Timeline Example Incident Updated