Future validator failed update/edit and remove

My “custom” removeAction does the following

eventCardsDc.getMutableItems().remove(ec); 
  dataContext.remove(ec);
  dataContext.commit();

To remove in-place. However I get EntityValidatonFailed exception for @Future validator set to a field of ec.
Also, If user’s tryng to modify item with @Future , they are not able to save it without “updating the field to be IN FUTURE RELATIVELY TO THE TIME OF EDITING”
How to make @Future act only on creation, not on update of Entity and why it’s checked on remove?
hmm or should I just catch exception on delete?
But the GUI anyway doesn’t even dispaly value of a field annotated with @Future when entity with such field is edited after creation (it’s not in Future anymore during edition, but is in the past) image

1 Like

Hi,

Unfortunately, I can’t reproduce this problem, could you please provide a demo project?

This is by design. If you need to provide a check only on creation, you need implement a custom validation by yourself, e.g. in entity editor.

Regards,
Gleb