Skip to Content
author's profile photo Former Member
Former Member

Pop up error

Hi,

I want when pressong on cinfirm data button, that the data is safed and in the pop-up should be a number that was given as an output from a bapi. But i am getting a nullpointer. What is wrong?

code in view controler:

wdThis.wdGetOm_Webforms_CompController().Y_Tf_Eic_Case_Update_Input("Requester_User_Id","Notification_No","Pernr","Country","Process");

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

String dialogText1 = wdContext.currentOutputEICaseElement().getEv_Eic_Case_Number();

IWDConfirmationDialog dialog =

wdComponentAPI.getWindowManager().createConfirmationWindow(

dialogText1 + "test",

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

dialog.addChoice(

controllerInfo.findInEventHandlers("CancelSubmit"), "Cancel");

dialog.open();

java.lang.NullPointerException

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

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

at com.shell.teamflow.wd.omwebforms.Positions_View.onActionSubmitData(Positions_View.java:387)

at com.shell.teamflow.wd.omwebforms.wdp.InternalPositions_View.wdInvokeEventHandler(InternalPositions_View.java:1572)

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:101)

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

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

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

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

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:390)

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

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

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

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

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

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

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

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

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

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:95)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 01:48 PM
    11

    hi

    this is the code for pop up.

    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();

    but in your code

    wdContext.currentOutputEICaseElement().getEv_Eic_Case_Number();

    it returns null value.

    That might be the problem.

    Check that once value is coming or not.

    Thanks

    Lohi.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Use this code in your close action.

      And mention the cardinality and selection 1..1 as mentioned Armin post.

      U can do this your Window instance folder.

      IWDWindow window = wdContext.current<your window instance folder>Element().getWindowInstance();

      window.destroy();

      This should work, I tried.

      Thanks

      Lohi.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.