on 03-16-2006 10:08 AM - last edited on 02-04-2024 4:08 AM by postmig_api_4
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.
Hi,
here's the link to the preliminary documentation for Web Dynpro ABAP and popups:
There are also examples in the system, e.g. take a look at package SWDP_TEST, cómponents WDR_TEST_POPUPS*.
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.