Create an action button July 04, 2020, 06:03:33 PM 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. Quote Selected
Re: Create an action button Reply #1 – July 06, 2020, 09:13:09 AM @Euder here is a similar question and solution https://phprad.com/forum/index.php?topic=1002.0, thanks. Quote Selected
Re: Create an action button Reply #2 – July 10, 2020, 02:10:24 PM Thanks Wilvin! That was inspiring. I had success! Quote Selected 1 Likes