Entering content frame

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

If the property text has not been set, the property tooltip is checked during the design time to ensure Accessibility.

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 the 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 the View Designer

Name

cardinality

Type

Menu

0..1

Menu

Note

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

 

                              Link

                              AbstractCaption

                              UIElement

          ViewElement

Dynamic Programming

For dynamic programming the same properties, events, and aggregations are provide in the 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.

 

 

 

Leaving content frame