Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » NodePage - DetailForm - Veto Form desactivation
NodePage - DetailForm - Veto Form desactivation [message #1782278] Wed, 21 February 2018 03:55 Go to next message
Eclipse UserFriend
HI
I have a NodePage with a Detail form. On the detail form I can enter data.
To store the data (and keep the form open), I've added the StoreButton to the form and removed the OKButton.
i face the problem, that the user can leave the detailform and activate another node in the same outline or veen change the outline even if ther eis some unsaved data on the form.
Is there a possibility to keep the user on the form, if the form is dirty? something like throwing a vetoexception in a formtobedesactived trigger?

TIA
rene
Re: NodePage - DetailForm - Veto Form desactivation [message #1782338 is a reply to message #1782278] Thu, 22 February 2018 01:48 Go to previous message
Eclipse UserFriend
Hello René

I don't think that there is a easy built-in option to do this.

The closest thing I could think of would be setting the IPageChangeStrategy on the outline (override createPageChangeStrategy, or call the setter) and modify it to check that if there is a DetailForm, it has been saved (and then not switch the form at all).
However, I can't tell you if that would lead to a consistent behaviour with the tree of the outline, which possibly already updated with the user's selection.
Previous Topic:org.eclipse.equinox.launcher
Next Topic:[Oxygen] Wizard - CanFinish or disable Finish-Button
Goto Forum:
  


Current Time: Sun Aug 31 16:49:39 EDT 2025

Powered by FUDForum. Page generated in 0.03725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top