Override global UI action

sp_18
Giga Contributor

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.

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

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


View solution in original post

23 REPLIES 23

Karthik Reddy T
Kilo Sage

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?


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

find_real_file.png


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??



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.


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

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?


Hi Sheetal, the following post will help you to understand the UI Action conditions. In there is where the .canWrite() can be used:



UI action restrictions



Thanks,


Berny