Adding a functionality to default window button


is it possible to add a functionality on windows “Remove” button in Browser screen?

In Bicycle Workshop sample project I have clients Browser screen with “Create”, “Edit” and “Remove” default buttons. I would like to keep “Remove” functionality and add additional one.

I made picture loading per client from input stream. When deleting a customer I would like to delete his picture as well.

Thanks in advance

You can use middlewar listener and override onbeforremove.

1 Like

Thanks for the idea @apunzi!

Works fine!