Change schedule Custom calendar

ChittiS
Tera Guru

Hello Team,

I successfully added a new Location column to the sn_chg_soc_change_soc UI Script by updating the column configuration as shown below:

 

ChittiS_0-1793284288220.png

 

Script:-

{
name: SOC.COLUMN.LOCATION,
label: i18n.getMessage("Location"),
align: "left",
width: 130,
min_width: 130,
template: function(content) {
return content.record && content.record.location ?
content.record.location.display_value :
"";
},
resize: true
}

I also added the constant:

COLUMN: {
CONFIG_ITEM: "config_item",
DURATION: "duration",
NUMBER: "number",
STATE: "state",
LOCATION: "location"
}

The column header appears successfully in the Enterprise Change Calendar, but the Location values are blank, even when the Location field is populated on the Change Request record.

My understanding is that the UI Script is rendering correctly, but the Location data may not be getting populated into the task data returned to the Change Calendar.

Can anyone advise me how I can configure this? 

Thanks

 

1 REPLY 1

brianlan25
Kilo Patron

I believe it should be getDisplayValue() rather then display_value.