cancel
Showing results for 
Search instead for 
Did you mean: 

LinkToURL / LinkToAction

Former Member
0 Kudos

Hello,

I have a problem using links inside Web Dynpro that look like this:

outlook:000000005e924c6a1314c8489b8e6c858fdfc70c... etc.

It keeps attaching this string to the relative path. If my server for example is at https://server/application it will create https://server/application/outlook:0000. and so forth, rendering the link unusable (it should spawn ms outlook and display a certain message.)

Also I have links that contain backslashes (f.ex.
home_dir\file1.zip).

Those are all Microsoft issues, as these are not correct URLs, but how can I make them work in Web Dynpro? Can't I force LinkToAction (which opens a new window with the url..) / LinkToURL to set the href-value of the link verbatim?

Thanks for any responses!

Lukas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Can't I force LinkToAction (which opens a new window with the url..)

Yes.

You have to use the createExternalWindow

wdComponentAPI.getWindowManager().createExternalWindow(URL, title, modal)

Regards

Ayyapparaj

Former Member
0 Kudos

Hello Ayyapparaj,

thanks for your reply.

However, I tried this approach. But when I have a URL that looks like this: outlook:023003093906f09a0cc090... it will just concatenate this URL to the server URL. I need it to be absolute. Can I accomplish this, if it does not start with "http://" or similar?

Lukas.

Former Member
0 Kudos

Try this: Add "outlook" to the list of allowed protocols by changing the runtime property "sap.url.protocols":

http://help.sap.com/saphelp_nw70/helpdata/EN/6b/8c784226d1d242e10000000a1550b0/frameset.htm

This should solve the issue.

Armin

Former Member
0 Kudos

Hello Armin,

thank you, however I'm not sure how to set the url protocol for my kind of URLs. It will still not accept them and even change the colon for the corresponding urlencoding, which will not start outlook.

Do you have any suggestions how to set the parameter correctly?

Lukas.

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

if u facing problem with path then try in this way("/documents/abc")..

secondly if m getting u right ,i think you wanna execute some action on portal

like u want to upload some file on particluar location on portal

then portal admin will porivde u the path for this.

u wont have to give http//: <server name>/.....

because as u r deploying file on the same server it will get path for that server itself..all u need to prove the folder location..tht you can get from portal administrator.

hpe it hlps u...

Regards,

Khushboo

Former Member
0 Kudos

Thank you Khushboo,

but in fact I need liks that have no slashes in them, just the "Outlook:" prefix and the hash. Yo can see it here: [http://www.slipstick.com/OUTLOOK/links.htm], the "Any Item" form.

I'm slowly desperating on that problem, sigh...

Cheers,

Lukas.

Former Member
0 Kudos

Thanks everyone for answering. Although we could not solve the problem, we set up a redirect page, where we send the outlook-URL as an url-parameter. This bounces the user to the correct URL and we get no Exception from Web Dynpro. This workaround is more like a hack and unfortunately SAP and Microsoft seem to be incompatible at this issue. But at least it works.

Thank you again,

Lukas.

Former Member
0 Kudos

No idea?