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 accessible 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

enabled

WDY_BOOLEAN

true

Yes

imageFirst

WDY_BOOLEAN

true

Yes

imageHeight

STRING

 

Yes

imageSource

STRING

 

Yes

imageWidth

STRING

 

Yes

reference

STRING

 

Yes

target

STRING

_blank

Yes

text

Text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Text

 

Yes

type

WDUI_LINK_TYPE

navigation

Yes

visible

WDUI_VISIBILITY

visible

Yes

wrapping

WDY_BOOLEAN

false

Yes

 

Aggregations in View Designer

Name

Cardinality

Type

MENU

0..1

Menu

Note

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

      Link

      AbstractCaption

      UIElement

      ViewElement

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

enabled

ENABLED

WDY_BOOLEAN

imageFirst

IMAGE_FIRST

WDY_BOOLEAN

imageHeight

IMAGE_HEIGHT

STRING

imageSource

IMAGE_SOURCE

STRING

imageWidth

IMAGE_WIDTH

STRING

reference

REFERENCE

STRING

target

TARGET

STRING

text

TEXT

WDY_MD_TRANSLATABLE_TEXT

textDirection

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

tooltip

TOOLTIP

WDY_MD_TRANSLATABLE_TEXT

type

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

visible

VISIBLE

WDUI_VISIBILITY

 visible: none

CL_WD_LINK_TO_URL=>E_VISIBLE-NONE

 visible: visible

CL_WD_LINK_TO_URL=>E_VISIBLE-VISIBLE

wrapping

WRAPPING

WDY_BOOLEAN

 

Dynamic Programming of Aggregations

View Designer Name

Runtime Name

Cardinality

MENU

MENU

0..1

Example

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

 

 

End of Content Area