Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » NodePage - DetailForm - Veto Form desactivation
NodePage - DetailForm - Veto Form desactivation [message #1782278] Wed, 21 February 2018 08:55 Go to next message
René  Eigenheer is currently offline René EigenheerFriend
Messages: 106
Registered: July 2009
Senior Member
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?

Re: NodePage - DetailForm - Veto Form desactivation [message #1782338 is a reply to message #1782278] Thu, 22 February 2018 06:48 Go to previous message
Patrick Bänziger is currently offline Patrick BänzigerFriend
Messages: 91
Registered: September 2011
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:[NEON] Drag & Drop
Next Topic:[Oxygen] Wizard - CanFinish or disable Finish-Button
Goto Forum:

Current Time: Tue Feb 18 19:15:37 GMT 2020

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

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

Back to the top