cancel
Showing results for 
Search instead for 
Did you mean: 

passing parameter to url

Former Member
0 Kudos

Hi

I am new to webdynpro. I have one text box and a button in my form. If i press the button i shoud be able to open a new window where i have to pass the input given in textbox as parameter to some url

eg: if the url is http://www.google.com/search and i give name in textbox

if i press submit i should be able to open a new window with url as http://www.google.com/search?h1=name

can anybody suggest on this...

Regards,

Prasanthi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197348
Active Contributor
0 Kudos

Hi Prasanthi,

IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Windowname");

String url ="http://www.google.com/search"

Create a context text attrtibute -> bind this to textbox.

Concatenate this to url.

url"?h1="wdContext.currentContextElement().getText();

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(url, window title, false);

regards,

Siva

Edited by: Siva Rama Krushna on Dec 28, 2007 7:55 PM

Former Member
0 Kudos

Hi,

Pl go through

Regards

Ayyapparaj