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: 105
Registered: July 2009
Senior Member
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 06:48 Go to previous message
Patrick Bänziger is currently offline Patrick BänzigerFriend
Messages: 51
Registered: September 2011
Member
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: Sun Sep 23 18:03:41 GMT 2018

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

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

Back to the top