Hello,
I use Vaadin 23.
I want to use the CRUD component, but I can’t find a way to prevent CRUD from saving if our backend throws an error message.
I would like something like a PreSave event that is executed before the save.
Thanks in advance
Hello,
I use Vaadin 23.
I want to use the CRUD component, but I can’t find a way to prevent CRUD from saving if our backend throws an error message.
I would like something like a PreSave event that is executed before the save.
Thanks in advance
Here’s a related issue in GitHub: [Crud] Allow cancellation of save event and dialog closing · Issue #6163 · vaadin/flow-components · GitHub
You can give it the thumbs-up reaction to indicate you’re interested in this kind of functionality.
The ticket also contains a workaround and a reference to an add-on that you could find useful.
There is PreSaveEvent in Enhanced CRUD, but unfortunately there is no version of the add-on for Vaadin 23 and 24.
The other features from the add-on were actually included in the official version, but for some reason PreSaveEvent was not. That is the reason that there has not been popular demand to make a new version of the add-on.