cancel
Showing results for 
Search instead for 
Did you mean: 

Complete a GP after closing a pop up window

Former Member
0 Kudos

Hi all,

I have written a wd4j application to be a callable object. When a user clicks to approve the request, a pop-up window appears and ask if they are sure. Upon clicking yes, the window should be closed and the GP should be completed. I am having an issue with completing the GP, as it completes before the window is destroyed and thus throws a null pointer.

Does any one know where I should a)destroy the window and then b) complete the GP?

I am closing the pop up window from my main window, via events raised by the component controller. I have tried to move the gp.complete around, but I am not able to get it to work

Thanks

Ryan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

To finish the GP you should use

executionContext.processingComplete();

And to close the window popUp

Try to use this confirmation window

IWDConfirmationDialog dialog = 
    wdComponentAPI.getWindowManager().createConfirmationWindow(....)....

And in the actions that you decide

you should destroy with this line, when dialog its the pop up.

dialog.destroy();