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

Atul Kumar2
Giga Guru

Hi Subhajit,



Could you try login and see via itil user ?



Are you working with admin role. May be the reason. try login in via itil.



Regards,


Atul Kumar


Logged in using ITIL user with demand_user role, was still able to new the new button on Resource Plan related list in a demand. Omit New button option was already checked.


Hi Subhajit,



Can you check roles if you have added in there accidentally. If any roles you have given then it will only remove those user who is having that role in user their user profile if not then it will show to the user.



find_real_file.png



Please validate and confirm.



If resolves your issue then fine else try to cache the instance.



yourinstance/cache.do



Note: It will impact the performance hence it is always recommended during non-business hours.



Regards,


Atul kumar


No roles were added. I flused the cache as well. It did not resolve the issue.