cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up in Webdynpro??

Former Member
0 Kudos

I am implementing delete operation in webdynpro. On submitting delete, I want a pop up window to accept confirmation. How can this be done in WebDynpro.

Regards,

Pawan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

here's the link to the preliminary documentation for Web Dynpro ABAP and popups:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e242bf5-0901-0010-c99c-83c...

There are also examples in the system, e.g. take a look at package SWDP_TEST, cómponents WDR_TEST_POPUPS*.

Regards, Heidi

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Pawan,

INorder to get the popups u have to first import the poupcomponentcontrollers(TutWD_Popup_Init) into ur nwds.

if u click on the delete button then u have to get the popup dialog conformation box with yes and no buttons.

its like this....

Creating Event Handlers yes and no...

1. Open the EmailView controller (Web Dynpro Components �� PopupComp

EmailView).

2. Choose the Methods tab page.

3. Choose New. In the wizard that appears, select Event handler and choose

confirm.

4. Enter the name ok and choose Finish to confirm.

after creating event handlers...

onActiondeletebutton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent

wdEvent )

{

//@@begin onActionSendMail(ServerEvent)

String dialogText= "Please confirm to delete or not!";

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("yes"),"yes");

dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("no"),"no");

dialog.open();

//@@end

}

hope u r satisfied with this....!

points please

REGARDS,

KRISHNAM RAJU

Former Member
0 Kudos

Hi Pawan,

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/55/084640c0e56913e10000000a1550b0/frameset.htm">Here</a> is another (related) tutorial. It's the one I (still) open every time I have to code a popup window.

Best regards,

Patrick.

Former Member
0 Kudos

Hi Pawan,

See this link on how to create confirmation box

http://help.sap.com/saphelp_nw04/helpdata/en/b0/184540631d6f13e10000000a1550b0/content.htm

Hope this helps you

Regards

Rohit