Database Trigger

1
Hey! For suppose, I am having a entity containing 10 records, then I have deleted last three rows. So, here can I execute a database trigger. Do we have that option in mendix??
asked
4 answers
2

You did not say what you want to achieve exactly, but maybe this is what you are looking for.

In the properties for an entity there is a tab page called Event. Here you can specify both a before and after delete microflow, which would be triggered just before or just after an entity of this type has been deleted.

answered
0

Do you mean an on delete trigger? You can add events to entities that are similar to database triggers. For your example you might want to add an after delete event.

answered
0

I would retrieve a list of the 10 records, and create a sublist with the records and delete them... If you want this checked the automatically you either connect this to a timer or to en event on an entity...

answered
0

Thanks for your response.

answered