Action buttons in view

Hi there. How do I remove the action buttons in a related column view. I do not want the user to be able to add new record from this view.

Hi @Andrea
Check out this thread
Related products

1 Like

Hi Lynn

Thanks for this. I want the related visits to show I just do not want the action buttons though. The virtual column is linking all 3 views from that table using action buttons to get to inline and form views. I don’t want the links to those 2 views. I just want the user to be able to see detail of related visits. Is this possible?

1 Like

Hi ,

You could use CONTEXT('View") function to hide those “New” ( or Add action) buttons. In the corresponding child table’s Add action’s “Only if this condition is true” setting, you could use an expression something like CONTEXT(“View”) <> “Dealer Base” if “Dealer Base” is the name of the view of parent table you have shown inthe picture shared.

Just in case you have not gone thorugh, you may wish totake a look at the following article describing CONTEXT() functions.

2 Likes

Thanks, still not quite understanding.

Hi @Andrea,

Thanks for the update. I am giving below an example of an exactly similar test scenario with the help of pictures. Hope it helps.

Picture 1-Please note where the view name is displayed.That view name is required to configure the action later. Order Details is Child table similar to 'Related Visits" in your case.

Picture 2- Please go to behavior ->actions and locate the child table actions and gotoAdd action of the child table( Visits table in your case)

Picture 3- Set the expression as indicated by including teh parent table view name. The parent table view name can be noted as shown in picture 1 above. Save the action changes.

Pictuure 4: The action button “New” is now hidden

2 Likes

Thank you sooo much, it worked. Really appreciate it. Maybe you can help with my other problem.

I have 2 tables that are related by Referencing the “Dealership Name” Table 2 is a form that needs to be completed when the Dealership is visited. I need the column ‘Visited’ In table 1 to add the value "Yes’ to the correct dealership when the data is input in column “Visit Complete” in table 2.
Is there a way to do this?

The solutions I have been given I have not managed to get working.

Hi ,

May I request you to post this question with a new post thread. This will enable all community members to give their valuable suggestions.

I believe you may wish to also elaborate the query a bit more such as which is parent table and child table. Also how you wish to have column updates( from child to parent or parent to child table) and which columns are in which table.

1 Like