Create a button that executes a customized function

Create a button that executes a customized function

Hello,

I have created a summary view in which I combine the data from my items table and suppliers table.

I would like to know if there is the possibility of adding a button somewhere in the view to be able to execute a function when clicked on it. I want to crear a purchase order of a determined item using de Inventory API.

If it cant be in the summary view, I also have it as a SQL made table.