- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 04:15 PM
Could somebody please help me figure how the 'New' button in the screenshot below was created & how its visibility is set?
I tried to look up 'Table' form's UI policies, Client Scripts, but I was unable to figure it out.
Fyi -
When I view my custom table, it shows the 'New' button.
However, when I view a table from a Global application — for example 'Embed Object' table , the button disappears.
Any help would be appreciated,
Regards,
Yogesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:54 PM
Hi Yogesh,
It comes from the OOB UI Macro - 'table_col_embedded_function'
Turn off the following property to false to hide the button.
ListProperties.setHasTopNavActionButtons(false);
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 07:33 PM
Hi Yogesh,
I just noticed the message shown above - "This record is in the Global application, but XXXXXXX Application is the current application. To edit this record click here."
This issue has got nothing to do with ACL or new button issue. But if you are updating a record which is not your current application scope, you will get this warning.
Please refer the following thread
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 07:35 PM
I just went through the documentation to learn about ACL.
I believe you are talking about the table 'Access Control(ACL)'
I dont think I changed any records on that table given the fact that I just learnt about it
Let me know if any other information will help,
Regards,
Yogesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 07:50 PM
Did you see my reply I sent on Application Scope? That might answer your question.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:13 PM
Thanks Antin,
I have requested my instance to be reset. It may take sometime before I could check it.
Referring to your 'application scope' response (yes, I missed to check it before- thank you for mentioning)- I think that the 'New' button will appear on my instance if I try to access a Global scoped record when I set my instance scope to Global. (feel free to correct me).
If that is correct, that tells me that there is a logic on the 'New' button that is making it visible when viewed from Global scope. and hiding it otherwise?
Regards,
Yogesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:47 PM
Please read more about application scope in the below URL. Basically, you will be able to edit only the objects that are on your scope. For example if Object1 is in Scope1, and Object2 is in Scope2, you can't update Object1 from Scope2 and can't update Object2 from Scope2.
In your case, you are on a specific scope and the object (Embed Object Table) is in Global Scope. So you cant edit it. Not just 'New' button, you cant see any edit option for any fields on the table unless you change your scope to Global.
Application Scope - ServiceNow Wiki
Hope this explains.
Thanks
Antin