- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 10:59 PM
Hi can anyone explain me how to override a global UI action with example and
is it available in the child table extended from parent?
like for example i have a table Extended Table(child) extended from Task with a UI action Submit only in the form view.
or we have to navigate somewhere else to perform this override action?
Thank You.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 11:10 PM
On regards your other questions:
a) Yes, a UI action that it's defined at a parent table will apply to the child tables as well
b) as referenced on the previous post security rights (ACLs) and .canWrite() is a great way to handle to which given tables a UI action will apply
Thanks,
Berny

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 11:11 PM
Hi Sheetal,
If the UI Action has current.canWrite() in the condition, then creating a security rule where the name is the name of the table and the field names is set to none, not * and then adding the appropriate role seems to work.
Override or remove a UI action for an extended table
How to override OOB UI Action?
ServiceNow Commnunity MVP -2018 class.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 11:26 PM
yeah following this instructions i went to submit which is a global UI action and added this current.getRecordClassName() !='Extended Table'.
in the condition section and created a new subbmit button in my child table with same action name.
After saving , the global button Submit got replaced with my created button Subbmit only on my custom table.
so its right process?? or i missed something??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2017 11:39 PM
yes sheetal,
You can write the action script which required to perform it.
Let me know if you need any other information related to this.
ServiceNow Commnunity MVP -2018 class.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 06:41 AM
yeah thanks.
actually i am not able to understand the concept "if the UI Action has current.canWrite() in the condition and creating of security rule exactly.
I mean how to and where to add this rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 07:01 AM
Hi Sheetal, the following post will help you to understand the UI Action conditions. In there is where the .canWrite() can be used:
Thanks,
Berny