1

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?

Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97

1 Answers1

1

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.

Jmini
  • 9,189
  • 2
  • 55
  • 77