Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » [Oxygen] Wizard - CanFinish or disable Finish-Button
[Oxygen] Wizard - CanFinish or disable Finish-Button [message #1782494] Sat, 24 February 2018 11:51 Go to next message
Eclipse UserFriend
Hello there,

I have a wizard, where a user can enter/order some items. On the last page a summary of all selected goods and the overall costs.

As long as the overall costs are zero I'd like the finish button to be disabled...

But a simple getContainerForm().getWizardFinishButton().setEnabled(false) does nothing.

I also have the Cancel Button visible ( containerForm.getWizardCancelButton().setVisible(true) ).

Is there a way to disable the Finish-Button. In earlier versions of Scout there was the IWizard.canFinish(). Is there something similar in Scout 7.x?

Regards, Peter
Re: [Oxygen] Wizard - CanFinish or disable Finish-Button [message #1782543 is a reply to message #1782494] Mon, 26 February 2018 05:28 Go to previous messageGo to next message
Eclipse UserFriend
Hello Peter

Yes, this should still be possible.

The recommended place to override the button behaviour is the AbstractWizard.execRefreshButtonPolicy() method. The default it sets the visibility of the Next, Finish and Previous-Buttons based on whether a previous/next step is available.
This method is called when the active step changes or the wizard is started initially.

Regards,
Patrick
Re: [Oxygen] Wizard - CanFinish or disable Finish-Button [message #1782587 is a reply to message #1782543] Mon, 26 February 2018 12:29 Go to previous message
Eclipse UserFriend
Hi,
thanks for the hint. It works like a charm.
Peter
Previous Topic:NodePage - DetailForm - Veto Form desactivation
Next Topic:Guide line to migrate from Kepler to Oxygen
Goto Forum:
  


Current Time: Thu Jul 03 11:53:58 EDT 2025

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

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

Back to the top