LinkToURL

The LinkToURL UI element is a hypertext link. When you choose this link, you are directed to a user-defined Web resource (URL). For example, with a LinkToURL, you can call external URLs such as search engines, or open other SAP applications asynchronously (including Web Dynpro ABAP applications).

The LinkToURL is used exclusively to open URLs in a separate window; it cannot be used to navigate within Web Dynpro applications. To leave the current Web Dynpro application and display a new URL use anExit Plug.

Note

To enable the development ofaccessible applications, the tooltip property is checked during the syntax check if the property text has not been 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

Runtime Class

CL_WD_LINK_TO_URL

Properties in the View Designer

Name Type Initial Value Bindable

id

STRING

(automatic)

No

activateAccessKey

WDY_BOOLEAN

false

No

contextMenuBehaviour

WDUI_CONTEXT_MENU_BEHAVIOUR

inherit

No

contextMenuId

WDY_MD_UI_ELEMENT_REFERENCE

 

No

controlMenuDisabling

WDY_BOOLEAN

true

Yes

design

WDUI_LINK_DESIGN

standard

Yes

enabled

WDY_BOOLEAN

true

Yes

hotkey

WDUI_HOTKEY

none

No

imageFirst

WDY_BOOLEAN

true

Yes

imageHeight

STRING

 

Yes

imageSource

STRING

 

Yes

imageWidth

STRING

 

Yes

Reference

STRING

 

Yes

target

STRING

 

Yes

text

Translatable text

 

Yes

textDirection

WDUI_TEXT_DIRECTION

inherit

Yes

tooltip

Translatable text

 

Yes

type

WDUI_LINK_TYPE

navigation

Yes

visible

WDUI_VISIBILITY

visible

Yes

wrapping

WDY_BOOLEAN

false

Yes

Aggregations in the View Designer

Name Cardinality Type

Menu

0..1

Menu

Note

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

Dynamic Programming

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

Dynamic Programming of Properties

View Designer Name Runtime Name Type

activateAccessKey

ACTIVATE_ACCESS_KEY

WDY_BOOLEAN

contextMenuBehaviour

CONTEXT_MENU_BEHAVIOUR

WDUI_CONTEXT_MENU_BEHAVIOUR

contextMenuBehaviour: inherit

CL_WD_LINK_TO_URL=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

contextMenuBehaviour: provide

CL_WD_LINK_TO_URL=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

contextMenuBehaviour: suppress

CL_WD_LINK_TO_URL=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId

CONTEXT_MENU_ID

WDY_MD_UI_ELEMENT_REFERENCE

controlMenuDisabling

CONTROL_MENU_DISABLING

WDY_BOOLEAN

design

DESIGN

WDUI_LINK_DESIGN

design: emphasized

CL_WD_LINK_TO_URL=>E_DESIGN-EMPHASIZED

design: standard

CL_WD_LINK_TO_URL=>E_DESIGN-STANDARD

enabled

ENABLED

WDY_BOOLEAN

hotkey

HOTKEY

WDUI_HOTKEY

hotkey: ctrl_0

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_0

hotkey: ctrl_1

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_1

hotkey: ctrl_2

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_2

hotkey: ctrl_3

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_3

hotkey: ctrl_4

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_4

hotkey: ctrl_5

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_5

hotkey: ctrl_6

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_6

hotkey: ctrl_7

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_7

hotkey: ctrl_8

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_8

hotkey: ctrl_9

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_9

hotkey: ctrl_a

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_A

hotkey: ctrl_b

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_B

hotkey: ctrl_c

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_C

hotkey: ctrl_d

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_D

hotkey: ctrl_e

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_E

hotkey: ctrl_f

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F

hotkey: ctrl_f10

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F10

hotkey: ctrl_f11

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F11

hotkey: ctrl_f12

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F12

hotkey: ctrl_f2

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F2

hotkey: ctrl_f3

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F3

hotkey: ctrl_f4

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F4

hotkey: ctrl_f5

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F5

hotkey: ctrl_f6

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F6

hotkey: ctrl_f7

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F7

hotkey: ctrl_f8

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F8

hotkey: ctrl_f9

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_F9

hotkey: ctrl_g

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_G

hotkey: ctrl_h

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_H

hotkey: ctrl_i

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_I

hotkey: ctrl_j

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_J

hotkey: ctrl_k

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_K

hotkey: ctrl_l

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_L

hotkey: ctrl_m

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_M

hotkey: ctrl_n

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_N

hotkey: ctrl_o

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_O

hotkey: ctrl_p

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_P

hotkey: ctrl_q

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_Q

hotkey: ctrl_r

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_R

hotkey: ctrl_s

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_S

hotkey: ctrl_shift_f1

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F1

hotkey: ctrl_shift_f10

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F10

hotkey: ctrl_shift_f11

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F11

hotkey: ctrl_shift_f12

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F12

hotkey: ctrl_shift_f2

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F2

hotkey: ctrl_shift_f3

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F3

hotkey: ctrl_shift_f4

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F4

hotkey: ctrl_shift_f5

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F5

hotkey: ctrl_shift_f6

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F6

hotkey: ctrl_shift_f7

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F7

hotkey: ctrl_shift_f8

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F8

hotkey: ctrl_shift_f9

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_SHIFT_F9

hotkey: ctrl_t

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_T

hotkey: ctrl_u

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_U

hotkey: ctrl_v

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_V

hotkey: ctrl_w

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_W

hotkey: ctrl_x

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_X

hotkey: ctrl_y

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_Y

hotkey: ctrl_z

CL_WD_LINK_TO_URL=>E_HOTKEY-CTRL_Z

hotkey: none

CL_WD_LINK_TO_URL=>E_HOTKEY-NONE

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.