Want to Remove Update Personalized List Cog, just for one table.

gscholl
Kilo Explorer

Want to Remove Update Personalized List Cog, just for one table.   I want to keep the cog available to all users for all list, except I have one list I want to remove it from.   I understand how to do it by role, but that won't work for this.   Any ideas?

Thanks - George

1 ACCEPTED SOLUTION

Agree with Paul and Brad.   BUT, you could add a "Before Insert" Business Rule on the List (sys_ui_list) table.   It will not stop them from clicking on the icon and making changes in the dialog, but it will abort the changes.



Your conditions would look like this (you would obviously change the table name):


Custom_-_Abort_customization.png


The "User is not empty" condition allows admins to make a global change.   The Actions would look like:


Custom_-_Abort_customization.png



May not be pretty, but it works without any DOM manipulation so it is safe from upgrades.


View solution in original post

5 REPLIES 5

The SN Nerd
Giga Sage
Giga Sage

I think your going to need a UI Macro to manipulate the DOM for that particular table.


Keep in mind that while it probably can be done - is it really worthwhile?



As a rule of thumb, if doing something requires DOM manipulation that is not a 'Must Have' kind of requirement, I would say to the customer that it is not supported in the tool.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

I agree with Paul. Your only other option would be a global ui script, which is generally a bad practice.



What's the context around this? Is it possible you could solve whatever the issue is with an info message or something like that?


Agree with Paul and Brad.   BUT, you could add a "Before Insert" Business Rule on the List (sys_ui_list) table.   It will not stop them from clicking on the icon and making changes in the dialog, but it will abort the changes.



Your conditions would look like this (you would obviously change the table name):


Custom_-_Abort_customization.png


The "User is not empty" condition allows admins to make a global change.   The Actions would look like:


Custom_-_Abort_customization.png



May not be pretty, but it works without any DOM manipulation so it is safe from upgrades.


khushi
Mega Contributor

Hi Jim,

 

This is really helpful,

But We have one requirement, where we have few columns in list view like, ID,Number,name etc. Here, customer wants that agent should not be able to remove only ID column from list view for himself as well. Rest others column they can remove with the help of personalize list.

Please let me know if it is feasible or not.

 

Thank you much.