Lack of Duplicate UI Actions

raprohaska
Kilo Guru

Attached are two UI Actions. One is global and one is for a specific table. Both are active and in at least one scenario, both conditions can evaluate to true.

I would expect that when both conditions evaluate to true, since the table specific action does NOT override the global, that duplicate buttons would be visible on the form. Yet this is not the case. If I disable either action individually, the other button will display on the form. If I disable them both, then no button will display on the form. Even still when both are active and both evaluate to true, only one button appears.

What attribute is causing this functionality? Since these are both out of the box, I would have expected the table specific button to override the global button.

Thanks for the insight in advance,

AA

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

When you create a Ui action with same action name, it will override the global one.


UI Action Overrides


View solution in original post

9 REPLIES 9

Chuck Tomasi
Tera Patron

The reason both don't appear is because they both have the same action name (sysverb_update). Your "private" UI action for the table is acting as an override as designed.



This might help.



UI Action Overrides



Thanks for the chance to read XML.


LOL, I actually don't mind XML, grew up on that stuff.



I typically like the way ServiceNow handles things but the action name thing can be a bit confusing. I'm surprised they don't use a standard list of action names with the ability to add custom action name. Some of the OOB actions names offer functionality that I wasn't aware of, for instance the cancel action name will ignore required fields.



Anyway, I'll get used to it. Thanks for the info.


Yeah, the sysverb_ stuff isn't documented very well (or at all that I can find.) Fortunately there aren't too many of them.



Interesting... I thought I had a best practice to always use the Action name field in UI actions somewhere in this collection: Technical Best Practices - ServiceNow Wiki



I don't see it. I know it was in the workshop slides.


Abhinay Erra
Giga Sage

When you create a Ui action with same action name, it will override the global one.


UI Action Overrides