What ACL to use to hide few columns of parent table in some of its child tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-06-2022 11:04 PM
HI All,
There is a requirement that there is a parent table that has some fields. Those fields i need to hide from some of its child tables list view and personalized column list view.
I tried with read ACL but the field is still visible yet not editable. Also i checked with add_to_list operation but for that we need to disable one UI policy and need to modify one SI that i am not sure i can modify
Please let me any solutions for this??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-06-2022 11:17 PM
Hi,
if you don't want those to be shown on child form then child table field level READ ACL is required
what ACL you configured?
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-06-2022 11:29 PM
Hi,
Here what i have done is in my PD instance i created a custom field on parent table that is then inherited by all its child tables.
So for eg, there are more than 50 child tables for that parent table and i want that field not to be visible on 7-8 child tables list view and personalized column [not on the form]
Doing it for all the 50+ child tables might be a lengthy process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-06-2022 11:32 PM
Hi,
then you can do this
1) create onLoad client script on parent table
Inherited checkbox - True
Script: give those 7-8 table names in script
function onLoad(){
var tableName = g_form.getTableName();
if(tableName == 'u_child1' || tableName == 'u_child2' || tableName == 'u_child3'){
// hide that field
}
}
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-06-2022 11:32 PM
I took operation as Read, admin override as false and just mention the tables name in the condition