This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Howto disable workscreen close button

General questions regarding the development with ProjX.

Howto disable workscreen close button

Postby jvxdev » Fri Mar 04, 2016 4:55 pm

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.
jvxdev
 
Posts: 19
Joined: Fri Mar 04, 2016 12:40 pm

Re: Howto disable workscreen close button

Postby Support@SIB » Fri Mar 04, 2016 4:59 pm

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().
User avatar
Support@SIB
 
Posts: 260
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development