on 11-17-2011 9:19 AM
HI All,
I developed one DC,my requirement is i want to show the POPUP box when i am clicking on the LinkAction,my popup box contains Close button for closing popup ,here popup is opening but when i am clicking on the close button popup should be closed,but popup is not closing i am getting error like:
java.lang.NullPointerException
at session.com.Targetpopup.onActionback(Targetpopup.java:146)
at session.com.wdp.InternalTargetpopup.wdInvokeEventHandler(InternalTargetpopup.java:140)
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.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
... 26 more
Edited by: Rama krishna.T on Nov 17, 2011 10:19 AM
What is your line of code at Targetpopup.java, row 146?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramakrishna,
Please create a context attribute "WindowInstance" of type IWDWindow.
Please set the window instace in the button action where you are calling the popup window.
/sample code for theis
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("WindowName");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
wdContext.currentContextElement().setWindowInstance(window);
window.setWindowPosition(WDWindowPos.CENTER);
window.show();
You create an eventhandler in the view and catch the event in handler which comes from popup view.
Write the code in event handler for destroying the window instance.
wdContext.currentContextElement().getWindowInstance().destroyInstance();
Hope this helps you.
Regards,
Saleem Mohammad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rama ,
Check if you have created event handler for Close button and given name of Event Handler exact same in method findInEventHandler("eventHandlerName") ;
Regards,
Khalid Desai.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.