The CreatorCon Call for Content is officially open! Get started here.

Omit New Button check not working for Resource Plan table(resource_plan)

sammajumder
Giga Contributor

Steps to Reproduce"

Open a Demand

Click on "Resource Plan" related list.

Go to Configure > List Control

Check "Omit New Button"

Once you are back to Demand, you are still able to see the "New" Button on Resource Plan Related list.

Is this a known issue? Is there patch to fix this?

1 ACCEPTED SOLUTION

edwajs
ServiceNow Employee
ServiceNow Employee

You need to look at the underlying UI Action for the New button definition.



This is not the generic New button UI Action for related lists, with sys_id=7b37cc370a0a0b34005bd7d7c7255583 and the condition:


current.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany()



This is a specific New UI Action for resource_plan as a related list, with sys_id=9085017383b10100829b45338ef622ad, and it has the following condition:


current.canCreate()



This means it does not check the list control setting '&& !RP.getListControl().isOmitNewButton()' so it is always going to show on the related list, regardless of what you do with list control.  



If you want to turn it off the UI Action with sys_id=9085017383b10100829b45338ef622ad you need to:


a) set Active = false;


b) Change the condition so it evaluates to false.



Regards,


Ed Wajs


Technical Support Developer


View solution in original post

7 REPLIES 7

Hi Subhajit,


Its time to raise a hi support ticket.



Regards,


Atul Kumar


edwajs
ServiceNow Employee
ServiceNow Employee

You need to look at the underlying UI Action for the New button definition.



This is not the generic New button UI Action for related lists, with sys_id=7b37cc370a0a0b34005bd7d7c7255583 and the condition:


current.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany()



This is a specific New UI Action for resource_plan as a related list, with sys_id=9085017383b10100829b45338ef622ad, and it has the following condition:


current.canCreate()



This means it does not check the list control setting '&& !RP.getListControl().isOmitNewButton()' so it is always going to show on the related list, regardless of what you do with list control.  



If you want to turn it off the UI Action with sys_id=9085017383b10100829b45338ef622ad you need to:


a) set Active = false;


b) Change the condition so it evaluates to false.



Regards,


Ed Wajs


Technical Support Developer


Solution Works. Thanks!!!!!!!!!!!