Howto disable workscreen close button

Posted:
Fri Mar 04, 2016 4:55 pm
by jvxdev
I want to show additional information before closing the screen. I want to close the screen programmatically.
I found the onClose method in DataSourceWorkScreen, but overriding didn't help.
Re: Howto disable workscreen close button

Posted:
Fri Mar 04, 2016 4:59 pm
by Support@SIB
If your work-screen extends DataSourceWorkScreen, the onClose() method is great.
Simply throw an Exception or a SilentAbortException to prevent the screen from closing.
It's also possible to overwrite notifyDestroy() if you screen doesn't extend DataSourceWorkScreen, but don't forget to call super.notifyDestroy().