cancel
Showing results for 
Search instead for 
Did you mean: 

opening a new window on lead select in a table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

it seems like wInfo is not getting initialised, mind you the "PopUp", should be the name of window and not view, there should be the window named "PopUp".

You can embed view in that window.

hope it helps

let me know if you face any problem

regards

Former Member
0 Kudos

hi

try goin thru this thread

regards

prasy

Former Member
0 Kudos

Hi,

U need to create the Window name PopUp under the Windows that would be the case senstive.

this would helps u.

thanks,

Lohi.

Former Member
0 Kudos

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.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog%2...

Former Member
0 Kudos

Thanks a lot Lohi, It worked.

My mistake was i created a view n embedded in the window.Now, I created a new Window.

thanks everybody for ur help

Thanks,

Shiny

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

abhijeet_mukkawar
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Go through this thread

sid_sunny
Contributor
0 Kudos

Hi Shiny,

The method open has been deprecated probably because of this. Try window.show() instead of open().

Regards

Sid