RemoveAction delegate is not working with custom data store

I have created a custom data store to call REST APIs of another non-Jmix application, load and save actions are working fine but it never hits dataGrid.remove delegate. When I remove, it show confirmation message, on clicking OK, row is removed from the grid, delegate is never called and of course on refreshing that row comes back. No change in generated descriptor or controller. Am I missing something?

It wasn’t working on 2.5.2, just upgraded to 2.6.0 and facing same issue.

Hi, @getshahzad

Could you please provide a sample project to reproduce the issue?

Regards,
Maria.

The remove delegate definitely works for example in this guide:
https://docs.jmix.io/jmix/openapi-integration-guide/index.html#specialty-views

Check what is different in your application.

I already went through Integrating Applications Using OpenAPI :: Jmix Documentation but didn’t find any thing different. PFA sample project, check ProjectListView
delegate-issue.zip (500.2 KB)

@getshahzad
Your example is missing a statement that the loaded Project entities in ProjectListView are not new.

In the guide, it is done by generated mappers (see here):

entityStates.setNew(entity, false);

Mark your entities as not new and the remove delegate should start working.

It worked. Thanks.