Resizing the Calendar on a Schedule Page
Specific applications in the ServiceNow platform generate graphical calendar displays based on schedule pages. Schedule pages are records that contain the scripts that determine the functionality of the graphical display. The schedule pages can be displayed in a daily, weekly, or monthly view. Because of the heavy degree of scripting involved in a schedule page, most instances should use the default schedule pages in the base platform.
The schedule page uses a URL with a series of parameters attached to generate the graphical display. However, the height and width of a calendar using schedule pages can be modified by editing the init function. This function assigns default values to each field in the record.
To modify the size of a schedule page view:
- Log into your instance.
- Navigate to System Scheduler > Schedule Pages.
- Search for and select the schedule page you want to modify.
- In the init function, modify the MAX_HEIGHT of the rows by adding the following code:
GwtCalendarViewMonthly.prototype.MAX_HEIGHT = 20
- Click Update or Save.