Field styling on the custom related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 05:12 AM
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!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2024 01:07 PM
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.
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2024 09:55 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2024 11:15 PM
Hello @Delapan
In my PDI, I've implemented for Category field you can replicate the same in your instance:
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:
Hope it helps:)
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 12:24 PM