Change schedule add Short Description

Max Lin
Tera Contributor

Hi experts! 

How can i add Short Description into the Change Schedule view?

Thanks all for the help! 

find_real_file.png

1 ACCEPTED SOLUTION

S C
Giga Expert

Update - I have fixed this now:

UI Script: change_soc

 

Approx. line 40:

 SHORT_DESCRIPTION: "short_description",

 

Approx. line 163

{
			name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                return "<span>" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "</span>" + "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' class='select-task icon-target'"
							+ "data-original-title='" + msgSelectRecord + "'" + "</span>";
                            }
                        },

View solution in original post

7 REPLIES 7

Inds
Tera Contributor

this solution is not working for me . when i have updated the same code for this UI script - change_soc.

 

Inds_1-1730997515604.png

 

 

Inds_0-1730997474744.png

 

 

 

 

{
name: SOC.COLUMN.SHORT_DESCRIPTION,
label: i18n.getMessage("Short Description"),
align: "left",
width: 220,
min_width: 220,
resize: true,
template: function(content) {
return "<span>" + content[SOC.COLUMN.SHORT_DESCRIPTION] + "</span>" + "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' class='select-task icon-target'" +
"data-original-title='" + msgSelectRecord + "'" + "</span>";
}
}, 
Attached the screen shot where i have made the changes. but still it is not working, can you please provide the correct answer.

I did something like that:


                        {
                            name: SOC.COLUMN.SHORT_DESCRIPTION,
                            label: i18n.getMessage("Short Description"),
                            align: "left",
                            width: 220,
                            min_width: 220,
                            resize: true,
                            template: function (content) {
                                var short_description = content.record[SOC.COLUMN.SHORT_DESCRIPTION].display_value ? content.record[SOC.COLUMN.SHORT_DESCRIPTION].display_value : '';
                                return "<span data-toggle='tooltip' data-trigger='hover focus click' data-container='body' data-placement='auto bottom' " +
                                    "data-original-title='" + short_description + "'>" +
                                    short_description +
                                    "</span>";
                            }
                        },

Hello,

 

Did you manage to fix this, I am getting similar issue where the column shows undefined