How to change the start day of the week for the Change Calendar.

Document ID : KB000051265
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

With "out-of-the-box" Service Desk Manager, the Change Calendar starts on Friday and ends on Thursday.

However, you may control the start day of the week in the Change Calendar by customizing the file, "list_chgsched_config.htmpl".

Solution:

To change the start day of the week for the calendar, please follow these steps:

  1. Copy the file, list_chgsched_config.htmpl, from under the $NX_ROOT\bopcfg directory to under the $NX_ROOT\site\mods directory.

    For example, for analyst, copy $NX_ROOT\bopcfg\www\htmpl\web\analyst\list_chgsched_config.htmpl to the $NX_ROOT\site\mods\www\htmpl\web\analyst directory.

  2. Open the new "list_chgsched_config.htmpl" file that now exists under the site\mods directory using a text editor.

  3. Search for:

    <PDM_MACRO NAME=schedConfig
    autoSearch=1
    defaultView=30
    export=ChangeSchedule
    firstday=5
    legend=2
    maxgroups=4
    ndays=(3,7,14,28)
    round=(0,15)
    timefmt=24hr>


  4. Change "firstday=5" to "firstday=0".

  5. Save and close the file.

  6. From the command/shell prompt, issue "pdm_webcache -H" and then issue "pdm_webcache -b".

Note:

The variable "firstday" represents the day that is displayed in the left-most column of the calendar.

The integer specified as the value of "firstday" is defined as follows:

0 means Sunday
1 means Monday
2 means Tuesday
3 means Wednesday
4 means Thursday
5 means Friday
6 means Saturday
7 means Sunday

When "pdm_webcache -b" is issued, end users are prompted to clear their web browser cache when they next log in to the Service Desk/CMDB web interface. The browser cache must be cleared in order for the calendar to show the new start day of the week.

Screenshots:

Before the change (see Figure 1).

Figure 1:
Figure 1

After the change (see Figure 2).

Figure 2:
Figure 2