on 04-13-2007 8:43 AM
Hi,
Can somebody tell me how to get a pop -up window on clicking(selecting) a particular row in a table ? Pop- Up window will contain some data related to that row selected. Pls help
Thanks,
Shiny
Hi ,
My problem is not solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Abhijeet,
I created a value attribute wind of type IWDWindow....while i was deploying n runnin g the appln.I get the below error.
***********************************************
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Parameter windowInfo must not be null.
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:1020)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createWindow(ClientComponent.java:1012)
at com.src.displaybelowappln.DisplayBelowView.onActionOnLeadSel(DisplayBelowView.java:230)
at com.src.displaybelowappln.wdp.InternalDisplayBelowView.wdInvokeEventHandler(InternalDisplayBelowView.java:169)
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)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Create one action, and assign this with the OnLeadSelection property of table.
Also create one Window and view in it. Lets say its name is "PopUp".
go to the implementation of the action, I hope the data you want to dispay here is available globaly i.e, is available across the views.
write the following code in action bound with the OnLeadSelection,
IWDWindowInfo wInfo = wdComponentAPI.getComponentInfo.findinWindow("PopUp");
IWDWindow win = wdComponentAPI.getWindowManager.createWindow(wInfo,true);
win.setWindowPosition(WDWindowPos.CENTER);
win.setWindowSize(200,150);
wdcontext.currentContextElement.setWind(win) ;//this is must to close
// the window, define Wind in component controller with datatype IWDWindow from java native type
win.open();
//create UI layout in POPUP window and crete one button with action mapped
// that on that action you will call component method(define this method), in this
//method write this code
IWDWIndow win = wdcontext.currentContextElement.getWind();
win.close();
win.destroy();//if you no longer want to use that so as to release memory
hope it helps
let me know if any problem occurs
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shiny,
See this help link for sample code:
http://help.sap.com/saphelp_nw04/helpdata/en/75/064640c0e56913e10000000a1550b0/content.htm
Regards, Suresh KB
hi,
in the Onlead selection of the taable you need to do.
create the method name and add the following code
BigDecimal rama = wdContext.currentProductsElement().getPRICE();
String raja = wdContext.currentProductsElement().getCOLOR();
wdContext.currentProductsElement().setPRICE(rama);
wdContext.currentProductsElement().setCOLOR(raja);
IWDWindowInfo win = wdComponentAPI.getComponentInfo().findInWindows("RAMA");
IWDWindow wn1 = wdComponentAPI.getWindowManager().createWindow(win,true);
wn1.open();
}
After this u create the window named as "RAMA" and embeded the another view in that context add the table node to new view also.
And design the form by using this node VA's.
Then you clicka any record that will dispaly all the record information.
Or otherwise take the example of WD_TABLE no11 import into ur NWDS inthat onlead seceltion of the table create one method add the following code.
And add one more window named as "RAMA" and create one more view add your node to that view context also and design that view by using that Node.
it will helps you.
thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shiny,
Please see these Docs,
http://help.sap.com/saphelp_nw04/helpdata/en/b0/184540631d6f13e10000000a1550b0/frameset.htm
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Shiny,
For the table you'll have a method called<b> on LeadSlect</b>. On LeadSelect you can create a methos and then you can write the code to open the popup.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For the row that you have selected you need to use leadSelected field. This is explained in https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bad3e990-0201-0010-3985-fa0936d901b4">web [original link is broken] [original link is broken]
Regards,
Subramanian V.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
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.