cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Information Dialog boxes in web Dynpro

Former Member
0 Kudos

Hi,

'm new to webdynpro.

Can any body help me to create a dialog box.

I would like to know how to create dialog boxes of type information, confirmation and warning

expects reply

thanks

smitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You have to create the Event Handlers for Ok and new email.

See this link

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

Kind Regards

Mukesh

Former Member
0 Kudos

Thank You all..

I got it

thanks again

Answers (4)

Answers (4)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Create an Action Event Handler Name ok.

Check on page 22 for creation that event handler in that Pdf

Regards,

Vijayakhanna Raman

Message was edited by: Vijayakhanna Raman

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Smitha,

See this thread:

Message type(error, warining)->Go to webdynpro navigator perpective->click on .xlf file add resource name

1. resource type(error, warining or information)

Regards

Suresh

Former Member
0 Kudos
Former Member
0 Kudos

to create confirmation dialog I tried the code

-


IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

String dialogText = "The email was successfully sent!";

IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText, controllerInfo.findInEventHandlers("ok"), "ok");

dialog.addChoice(controllerInfo.findInEventHandlers("newEmail"), "new email");

dialog.open();

-


and I got error like:

java.lang.NullPointerException

at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:58)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:926)

at com.enteg.systallocpkg.LoginView.onActionLogin(LoginView.java:157)

at com.enteg.systallocpkg.wdp.InternalLoginView.wdInvokeEventHandler(InternalLoginView.java:137)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

I don't know how to solve this

can any body help me

Smitha

Former Member
0 Kudos

Hi,

Ensure that you have created an Event Handler with name ok

Regards

Saravanan K

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Pop up dialog box.

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

String dialogText = "Validation Failed";

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(

dialogText,

controllerInfo.findInEventHandlers("ok"),"ok");

dialog.open();

Check thishttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog%20boxes%20in%20web%20dynpro%20applications.pdf

Regards,

Vijayakhanna Raman