Scout eclipse execStore 不是 markSaved

Scout eclipse execStore not markSaved

我想知道如何在 execStore 函数内部设置 "dirty" 标志仍然打开。

我看到在 scout 中,用于保存 markSaved() 的函数在 execStore() 之后被调用。但是,如果我在 execStore() 中有一些逻辑怎么办,那会阻止保存。在这种情况下,我不想被标记为已保存。

有没有办法避免将表单设置为 markSaved() ? 有没有正确的 scout 处理方式?

您可以:

  • execStore()
  • 期间抛出异常(ProcessingExceptionVetoException
  • 调用 setFormStored(false); [它适用于 Eclipse Mars]

另请参阅童军论坛:execStore() and Confirmation

PS:我没有用 Eclipse Neon 测试它。如果 Neon 改变了这种行为,请报告。我对你的发现很感兴趣。