cancel
Showing results for 
Search instead for 
Did you mean: 

How do navigate to an http url through code?

Former Member
0 Kudos

Hello,

I have a certain linkToURL.

When the user presses it, it navigates to a certain http address.

My question is if there is an option in DynPro to do this navigation in code (like navigate in JSP..).

Roy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved it!

If you interest, it is with SAP Note 824357

Roy

Former Member
0 Kudos

Please ignore it, it belongs to another post...

Former Member
0 Kudos

I think I solved it on my own, simply create new window right?

Former Member
0 Kudos

Hello,

You can always create a context attribute which will be referred by "reference" property of the LinkToURL UI Element.

In this way you can control which http address to be used for navigation.

In addition you can also use target propery to open the link in separate window instead of creating window.

you must use following targets as per your requirement

- _blank

The page is opened in a new window without a name. This is the default value.

- _self

The page is displayed in the same window as the link.

- _parent

The page is displayed in the superordinate browser window. If there is no superordinate window, the page is displayed in the same window as the link.

- _top

The page is opened in the original window of a frame hierarchy. If there is no frame hierarchy, the page is displayed in the same window as the link.

Cheers

NEx