cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a URL

Former Member
0 Kudos

Dear Experts,

I have a url, when I call the url in Internet Explorer and pass the paramaters to the url such as mob. no, message,

the url seds a sms to the mobile no. provided.

Now I have to call this url in my webdynpro application to send sms.

Request you to kindly suggest How may I achieve it.

Warm Regards

Upendra Agrawal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create one context attribute like "URL" and bind this attribute to reference property of LinkToURL UI element.

Now in the code set the url to this context attribute as below.

wdContext.currentContextElement().setURL("http://sms/...etc..");

At runtime when user clicks on this LinkToURL ui element's link then this link will be opened.

Or

You can use the below code to open the URL as external window in a button action.


IWDWindow win;
win =
wdComponentAPI.getWindowManager().createExternalWindow(
"http://sms/...etc..","SMS",true);
win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
win.open();

Regards,

Charan

Former Member
0 Kudos

Dear Charan,

I want to do it in the background, the user should not click on a link. it is like that if a user presses a button SEND SMS the sms should be send in the background itself, no windows, etc

Please suggest

Warm Regards

Upendra agrawal

Former Member
0 Kudos

Hi,

I dont think it is a proper approach. Just giving some idea.

Create one IFrame UI element.

When user clicks on Button then bind URL context attribute to the reference property of this UI element.

And make invisible this IFrame UI element by changing Visiblilty property to blank/none.

See the executeUrl method in the below link:

http://domingo.sourceforge.net/apidocs/de/bea/domingo/http/BaseHttp.html#executeUrl(java.lang.String...

Regards,

Charan

Former Member
0 Kudos

HI Upendra,

How does your url works.. You said while calling the url in IE it will send sms.

Which backend you are using to achieve this?

Best Wishes

Idhaya R

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

You can use the link to url and in this UI , just goto properties and fil teh necessary details and you can achieve in calling the URL from u'r aapplication

Or else you are having soem different scenario like with hhttp you want to call then gui also will coem into picture.

Link:[http://help.sap.com/saphelp_nw04/helpdata/EN/c5/dc99f5d1b1504aa0045a7070a0f500/content.htm]

Link:[http://help.sap.com/saphelp_nwce10/helpdata/en/5e/450141f72ef323e10000000a155106/content.htm]

Regards,

Anupama