Adding new change type to change order schedule
search cancel

Adding new change type to change order schedule

book

Article ID: 24224

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

This document provides information on how to schedule a new Change Order using a new Change Type and allow it to correctly display in the Change Order Schedule.

Environment

Service Desk Manager 17.x

All Supported Operating Systems

Resolution

By default when a Change Order is scheduled using a created Change Type it will display in the Change Calendar as a "Normal" Change Type, instead of the correct identifier.

In order to allow newly created Change Types to display, a customization is required on the "list_chgsched_config.htmpl" form.

  1. Log into Web Screen Painter (WSP) and open the list_chgsched_config.htmpl, and switch to the "Source" tab.

  2. Find in the document the section:
    <PDM_MACRO name=schedGroup label="Maintenance" bgcolor=lightgreen grpname=maintWindow icon="confirmation_12.png" legend="Maintenance Window"><PDM_MACRO name=schedGroup label="Blackout" bgcolor=black color=white grpname=blackoutWindow icon="warning_12.png" legend="Blackout Window" style=italic><PDM_MACRO name=schedGroup label="Emergency" bgcolor=Red color=White grpname=emer legend="Emergency change order" style=bold><PDM_MACRO name=schedGroup label="Normal" bgcolor=LightCyan grpname=norm legend="Normal change order"><PDM_MACRO name=schedGroup label="Standard" grpname=std legend="Standard change order" style=italic><PDM_IF 0>
  3. Insert your new Change Type in a similar fashion. For example:
     <PDM_MACRO name=schedGroup label="Maintenance" bgcolor=lightgreen grpname=maintWindow icon="confirmation_12.png" legend="Maintenance Window"><PDM_MACRO name=schedGroup label="Blackout" bgcolor=black color=white grpname=blackoutWindow icon="warning_12.png" legend="Blackout Window" style=italic><PDM_MACRO name=schedGroup label="Emergency" bgcolor=Red color=White grpname=emer legend="Emergency change order" style=bold><PDM_MACRO name=schedGroup label="Normal" bgcolor=LightCyan grpname=norm legend="Normal change order"><PDM_MACRO name=schedGroup label="123" grpname=123 legend="123 change order" style=italic><PDM_MACRO name=schedGroup label="Standard" grpname=std legend="Standard change order" style=italic><PDM_IF 0>
    In this example the newly created Change Type is "123".

  4. Scroll further down in the file and look for:
     function setSchedEvents( chg ){ var grpnum; switch( chg.chgtype - 0 ) {   case 100: grpnum = schedGroup_std;  break;   case 300: grpnum = schedGroup_emer; break;   default:  grpnum = schedGroup_norm; break; } chg.schedEvent( grpnum, chg.sched_start_date, chg.sched_end_date );} 
  5. You must also insert an entry for the newly created Change Type. For example:
    { var grpnum; switch( chg.chgtype - 0 ) {   case 100: grpnum = schedGroup_std;  break;   case 300: grpnum = schedGroup_emer; break;   case 400001: grpnum = schedGroup_123; break;   default:  grpnum = schedGroup_norm; break; } chg.schedEvent( grpnum, chg.sched_start_date, chg.sched_end_date );}
    In the above example there is a reference to ID "400001" for the newly created Change Type. This ID value was obtained by performing a pdm_extract on the "usp_change_type" table and finding the "id" value associated to the Change Type that was created. This value may be different in your environment.

  6. Save and Publish the updated HTMPL form and then run a pdm_webcache on the SDM server(s) for the change to reflect.

Please note, this is a customization and is therefore provided without support from Broadcom Support.