Scout eclipse execStore not markSaved

49 Views Asked by At

I Would like to know how to set inside execStore function that "dirty" flag is still on.

I see that in scout function for saving markSaved() is called after execStore(). But what if I have some logic in execStore(), that can prevent save. In this case I would like not to be marked as saved.

Is there a way to avoid setting form as markSaved() ? Is there aright scout way for handling this?

1

There are 1 best solutions below

1
On BEST ANSWER

You can:

  • throw an exception (ProcessingException or VetoException) during execStore()
  • call setFormStored(false); [it works with Eclipse Mars]

See also in the Scout Forum: execStore() and Confirmation

PS: I did not test it with Eclipse Neon. Please report if this behavour has changed with Neon. I am interested in your findings.