- 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 08:16 PM
Just want to add one thing- I dont need that 'New' button to be visible always. I just want to know what is controlling its visibility because I want to mimic it for my custom app (at the moment it is not appearing on my custom app, so I am trying to understand what is controlling it)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:49 PM
Following line controls the New button.
ListProperties.setHasTopNavActionButtons(false);
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 09:18 PM
Thanks Antin,
That was very useful.
Let me read through the link & do some trial and errors and see what results I get.
Regards,
Yogesh