cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up not opening

Former Member
0 Kudos

Hi SDN's

I am trying to open a popup by using the below code.

wdComponentAPI.getMessageManager().reportSuccess(" before opening popup ");

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(" test submit",

wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("dispMsg"),"Ok");

dialog.setWindowPosition(100,200);

dialog.setWindowSize(200,200);

wdComponentAPI.getMessageManager().reportSuccess(" after opening popup ");

I have created the event handler with name dispMsg.

I am able to see the tow print statements before and after the execution of popup. But unable to view the popup.

Please anyone help me regarding this issue.

Thanks,

Raju.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

check this SAP DOC for the creating for confirmation window

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/42af9f90-0201-0010-6099-ba67e542...

Thanks

Former Member
0 Kudos

Hi Raju,

You need to use dialog.show() after setting the size of the window to open the confirmation window.

Thanks in advance

Ritushree Saha

Former Member
0 Kudos

Hi Raju,

You have to call either open() or show() method available in dialog. However since open is deprecated it is advisable to use show() method.

dialog.show()

Only after you include this statement you will be able to see the popup.

Regards,

Ponraj M

pravesh_verma
Active Contributor
0 Kudos

Hi Raju,

Please try this code:



IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow("test submit", wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("dispMsg"),"Ok");
dialog.setWindowPosition(100,200);
dialog.setWindowSize(200,200);
dialog.show();

You have to use the .show() method to open the window.

I hope this solves the issue. Please revert back in case you need any further informationon on this.

Thanks and Regards,

Pravesh