cancel
Showing results for 
Search instead for 
Did you mean: 

Link to URl

Former Member
0 Kudos

Hello All,

I have a WDj app. I am asking the user to enter user name and password and validating it against LDAP and then showing the user a second view. It just has one ui Elment LINK TO URL.

I want the link to open in the same browser window as the wdj app is runing.

Is it possible to achieve following things

1> Call the url directly after the user is authnticated as in redirecting the url.

2> Oepn the link in the same window

I have tried _MAIN, _SELF and "" but it does not open the link in the same window.

3> Open the brwser in the new window and close the parent window.

Thanks and Regards

Pradeep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

>Call the url directly after the user is authnticated as in redirecting the url.

You can use exit plugs on the WD and pass the URL as a parameter.

>Oepn the link in the same window

No, The standard targets "_self", "_parent" and the others have been deactivated for the LinkToURL UI element. By default a link will open in a new window and you cannot change this. You can use portal navigation though.

>Open the brwser in the new window and close the parent window.

Search this forum by clicking [here|https://forums.sdn.sap.com/search.jspa?threadID=&q=close+window&objID=f52&dateRange=all&numResults=15&rankBy=10001].

Regards,

Satyajit.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

If I understand your requirement, I suggest you to go for LinkToAction

instead of LinkToURL.

Place both views in a window and define navigation between them using outbound and inbound plugs.

In Action of LinkToAction, After validating user, fire Plug to

SecondView from FirstView as

wdThis.wdFirePlug<OutboundPlug to SecondView>();

Regards

LN

Former Member
0 Kudos

All,

let me put my requirements in a more detailled way:

http://<servername>:50000/webdynpro/dispatcher/local/<App name>/<ComponentName>

now it has 2 view

first view

and second view

first view has controls for allowing users to enter user id and password and a log on button.

Second view has a linkto URL element.

On click of this element I am trying to open up google.com.

Now I do not want to navigate to secnd view for this, is it possible to open google.com (or any other URL) from action of the button. i also want the link to open in the same " browser" i.e http://<servername>:50000/webdynpro/dispatcher/local/<App name>/<ComponentName>

should be replaces by http://www.google.com

I Hope I am bit more clear on my requirments now.

Thanks and Regards

Pradeep Bhojak

Former Member
0 Kudos

Hi Pradeep,

How you acheived linktourl opening in same browser. I tried target property SELF,MAIN,_Top nothing worked in opening in same browser, its opening in new browser.

Thanks,

pkv