Is there a way to allow deletion of a record only if some conditions are met e.g. the status of the record is revoked?
How do you delete a record?
To be more specific. In ListView i want the remove button to be enabled/disabled based on the conditions
You can subscribe on event enabledRule
@Install(to = "usersDataGrid.remove", subject = "enabledRule")
private boolean usersDataGridRemoveEnabledRule() {
return false;
}
In a Studio with an active subscription, it looks like this: