Skip to main content
Topic: Create an action button (Read 1727 times) previous topic - next topic

Create an action button

Hi guys!

I would like to create an action button and add it to the list view, along with the other patterns (edit, view and delete).  I managed to edit the page and insert the link component but I was not successful in invoking a routine.  What would be the best approach to resolve this?

For example, let's say I have two tables: customers and orders.  When listing customers I would like to provide a button that cancels all customer orders.  Then a routine would fetch all customer-related order records and change the status to canceled.

I would like to do it keeping the MVC structures, maybe invoking an action from the controller of Orders.

I thank in advance for any help. I've been researching without an effective solution.



Re: Create an action button

Reply #2
Thanks Wilvin! That was inspiring. I had success!