You have a table called “Items”. If you go to the action panel you will find all the actions related to the Items table. Under “Items” you will find the action called “Add”.
Then, as for my previous reply, go to the behaviour section and type: in(context(“View”), list(“View1”, “View2”)).. where “View1” and “View2” are the views where you want “Add” to be displayed.
Yes, you can do this using the CONTEXT() function to hide the Inline table button from a specific view. Below is an example where I hide the Add button from the “Related Purchase Orders” list in the Vendor Detail view. See image below
NOTE: make sure you are changing the correct Add button! Since the inline table below is a list of Purchase Orders, I want to hide the Purchase Order Add button
►This is what worked for me after many tries and errors◄
If you want to show the action button to some specific views add this line (make sure to attach _form or _detail at the end of the name) (You can get exact name from view - system generated or at the screen footer).
in(context("View"), list("Seller CA Slice_Detail", "Seller CA Slice_Form"))
If you want to show an action to all view but hide certain view do like this
CONTEXT("VIEW") <> "Task CA_Detail"
Here I am hiding from detail but you can hide from detail or form or both.
Problem I’ve encountered: Cause I have a deep link to a specific slice called (Task ca edit), I first created a new view for the slice (Task ca edit) and made it as ref since I did not want it to show in the app navigation or menu. This being said to take note that you can not use below snippet code if you do not make a view for your slice or table you want to control (hiding or showing action button).
in(context("View"), list("Seller CA Slice_Detail", "Seller CA Slice_Form","Task ca edit_Detail","Task ca edit_Form"))
Since it seems you want the Add button to SHOW only for the 2 views - “Seller CA Slice_Detail” and “Seller CA Slice_Form” - then you only need this part:
in(context("View"), list("Seller CA Slice_Detail", "Seller CA Slice_Form"))