on 04-17-2007 7:19 AM
Hi,
I want to open a window on Lead Select ...i have written the below code in the ActionLeadSelect
************************Begin Code******************************************************
message.reportSuccess("came inside LeadSelect");
IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow("www.yahoo.com","",false);
message.reportSuccess("came 1");
window.open();
message.reportSuccess("came 2");
***************************end code********************************************************
but On selecting a particular row in a table , window is not being opened..but the message I gave are displayed .Can u gimme a solution
Thanks,
Shiny
Hi,
It helped abijeet.Pop Up window is opened.
Now, I also tried opening another pop up window. I created a view called 'PopUp'. now.On selecting a row in the table I want to open this window(PopUp) .I tried the below code:
*************
IWDWindowInfo wInfo =wdComponentAPI.getComponentInfo().findInWindows("PopUp");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(wInfo);
message.reportSuccess("came 1");
window.show();
message.reportSuccess("came 2");
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(100, 100);
message.reportSuccess("came 3");
*******************
I get the below exception on executing:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Parameter windowInfo must not be null.
what else should i set. Can u gimme a solution??
Thanks,
Shiny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shiny,
Go through this tutorial, it explains how you can go to a URL and how you can open a view as a pop up.
Hi Shriram,
A bit surprising, because I said absolutely the same thing in this previous post :
https://forums.sdn.sap.com/post!reply.jspa?threadID=374977
and that didn't made sense and this did. As long as the problem is solved, I guess it is okay.
Regards,
Subramanian V.
hi,
put "http://"
chk this out, the difference
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.google.com","Google",false);
regards
Message was edited by:
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai ,
Try with this code.
************************Begin Code******************************************************
message.reportSuccess("came inside LeadSelect");
IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow("<b>http://www.yahoo.com</b>","",false);
message.reportSuccess("came 1");
window.open();
message.reportSuccess("came 2");
***************************end code********************************************************
regards,
naga
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.
Hi Shiny,
The method open has been deprecated probably because of this. Try window.show() instead of open().
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.