Field styling on the custom related list

Delapan
Tera Contributor

Hello All,

 

I have requirement where we have a custom related list 'Related Problems' in Incident, which lists all the problems of Incident family i.e problems associated with parent, child & sibling incidents. I need to highlight the problem number which is associated to current incident in the custom related list.
How can we achieve this??

 

Thanks in advance!!

4 REPLIES 4

Murthy Ch
Giga Sage

Hello @Delapan 

This is something we cannot implement because we cannot apply the field sytels on the "Number" field.

Instead I will recommend you to highlight different field. Let me know if you want to achieve the same.

 

Thanks,
Murthy

Hello @Murthy Ch thanks for reaching out.

Yes I would like to highlight some other field, can you please let me know how can we achieve this??

 

Thanks,
Delapan

Murthy Ch
Giga Sage

Hello @Delapan 
In my PDI, I've implemented for Category field you can replicate the same in your instance:

MurthyCh_0-1727676809334.png

var IncidentUtil = Class.create();
IncidentUtil.prototype = {
    initialize: function() {},

    getParent: function(current) {
        if (!gs.nil(current.parent.toString()) && current.getTableName() == "incident" && gs.action.getGlideURI().toString().indexOf("problem") > -1) {
            return current.parent.toString() == gs.action.getGlideURI().getMap().get("sys_id").toString();
        }
        return false;
    },
    type: 'IncidentUtil'
};

Output:

MurthyCh_1-1727676903625.png

Hope it helps:)

 

Thanks,
Murthy

@Delapan 
Did you tried my above response?
Did it solved your query?

 

Thanks,
Murthy