Start of Content Area

Background documentation LinkToURL Locate the document in its SAP Library structure

The LinkToURL UI element is a hypertext link. When you choose this link, you are directed to a user-defined Web resource (URL).

The LinkToUrl is used to exclusively to open URLs in a separate window. To leave the Web Dynpro application and display a new URL use an exit plug.

Note

To enable the development of Structure linkaccessible applications, the tooltip property is checked during the syntax check if the property text is not set.

A tooltip does not necessarily have to be set for this UI element, but it could make sense to set it if it contains detailed semantic information.

Examples of the Display

Simple LinkToURL

LinkToURL with Menu Aggregation

This graphic is explained in the accompanying text

This graphic is explained in the accompanying text

 

Runtime Class

CL_WD_LINK_TO_URL

 

Properties in View Designer

Name

Type

Initial Value

Bindable

id

STRING

(automatic)

No

Structure linkenabled

WDY_BOOLEAN

true

Yes

Structure linkimageFirst

WDY_BOOLEAN

true

Yes

Structure linkimageHeight

STRING

 

Yes

Structure linkimageSource

STRING

 

Yes

Structure linkimageWidth

STRING

 

Yes

Structure linkreference

STRING

 

Yes

Structure linktarget

STRING

_blank

Yes

Structure linktext

Text

 

Yes

Structure linktextDirection

WDUI_TEXT_DIRECTION

inherit

Yes

Structure linktooltip

Text

 

Yes

Structure linktype

WDUI_LINK_TYPE

navigation

Yes

Structure linkvisible

WDUI_VISIBILITY

visible

Yes

Structure linkwrapping

WDY_BOOLEAN

false

Yes

 

Aggregations in View Designer

Name

Cardinality

Type

Structure linkMENU

0..1

Structure linkMenu

Note

Other properties that can be inherited are defined in the associated higher-level class. The associated UI elements are:

      Structure linkLink

      Structure linkAbstractCaption

      Structure linkUIElement

      Structure linkViewElement

Dynamic Programming

For dynamic programming, the same properties, events and aggregations are available as in View Designer. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name

Runtime Name

Type

Structure linkenabled

ENABLED

WDY_BOOLEAN

Structure linkimageFirst

IMAGE_FIRST

WDY_BOOLEAN

Structure linkimageHeight

IMAGE_HEIGHT

STRING

Structure linkimageSource

IMAGE_SOURCE

STRING

Structure linkimageWidth

IMAGE_WIDTH

STRING

Structure linkreference

REFERENCE

STRING

Structure linktarget

TARGET

STRING

Structure linktext

TEXT

WDY_MD_TRANSLATABLE_TEXT

Structure linktextDirection

TEXT_DIRECTION

WDUI_TEXT_DIRECTION

 textDirection: inherit

CL_WD_LINK_TO_URL=>E_TEXT_DIRECTION-INHERIT

 textDirection: ltr

CL_WD_LINK_TO_URL=>E_TEXT_DIRECTION-LTR

 textDirection: rtl

CL_WD_LINK_TO_URL=>E_TEXT_DIRECTION-RTL

Structure linktooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

Structure linktype

TYPE

WDUI_LINK_TYPE

 type: function

CL_WD_LINK_TO_URL=>E_TYPE-FUNCTION

 type: navigation

CL_WD_LINK_TO_URL=>E_TYPE-NAVIGATION

 type: reporting

CL_WD_LINK_TO_URL=>E_TYPE-REPORTING

 type: result

CL_WD_LINK_TO_URL=>E_TYPE-RESULT

Structure linkvisible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_LINK_TO_URL=>E_VISIBLE-NONE

 visible: visible

CL_WD_LINK_TO_URL=>E_VISIBLE-VISIBLE

Structure linkwrapping

WRAPPING

WDY_BOOLEAN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

Structure linkMENU

MENU

0..1

Example

You can find examples in the system in the Web Dynpro application, WDR_TEST_UI_ELEMENTS.

 

 

End of Content Area