!--a11y-->
LinkToAction 
The LinkToAction UI element is a hypertext link. The navigation to this link triggers a Web Dynpro action.

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 LinkToAction |
LinkToAction with Menu Aggregation |
|
|
Runtime Class |
CL_WD_LINK_TO_ACTION |
Properties in View Designer
Name |
Type |
Initial Value |
Bindable |
id |
STRING |
(automatic) |
No |
WDY_BOOLEAN |
true |
Yes |
|
WDY_BOOLEAN |
true |
Yes |
|
STRING |
|
Yes |
|
STRING |
|
Yes |
|
STRING |
|
Yes |
|
Text |
|
Yes |
|
WDUI_TEXT_DIRECTION |
inherit |
Yes |
|
Text |
|
Yes |
|
WDUI_LINK_TYPE |
function |
Yes |
|
WDUI_VISIBILITY |
visible |
Yes |
|
WDY_BOOLEAN |
false |
Yes |
Aggregations in View Designer
Name |
Cardinality |
Type |
0..1 |
Events in View Designer
Name |

Other properties that can be inherited are defined in the associated higher-level class. The associated UI elements are:
●
Link
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 |
WDY_BOOLEAN |
|
IMAGE_FIRST |
WDY_BOOLEAN |
|
IMAGE_HEIGHT |
STRING |
|
IMAGE_SOURCE |
STRING |
|
IMAGE_WIDTH |
STRING |
|
TEXT |
WDY_MD_TRANSLATABLE_TEXT |
|
TEXT_DIRECTION |
WDUI_TEXT_DIRECTION |
|
textDirection: inherit |
CL_WD_LINK_TO_ACTION=>E_TEXT_DIRECTION-INHERIT |
|
textDirection: ltr |
CL_WD_LINK_TO_ACTION=>E_TEXT_DIRECTION-LTR |
|
textDirection: rtl |
CL_WD_LINK_TO_ACTION=>E_TEXT_DIRECTION-RTL |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
TYPE |
WDUI_LINK_TYPE |
|
type: function |
CL_WD_LINK_TO_ACTION=>E_TYPE-FUNCTION |
|
type: navigation |
CL_WD_LINK_TO_ACTION=>E_TYPE-NAVIGATION |
|
type: reporting |
CL_WD_LINK_TO_ACTION=>E_TYPE-REPORTING |
|
type: result |
CL_WD_LINK_TO_ACTION=>E_TYPE-RESULT |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_LINK_TO_ACTION=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_LINK_TO_ACTION=>E_VISIBLE-VISIBLE |
|
WRAPPING |
WDY_BOOLEAN |
|
Dynamic Programming of Events
View Designer Name |
Runtime Name |
ON_ACTION |
Dynamic Programming of Aggregations
View Designer Name |
Runtime Name |
Cardinality |
MENU |
0..1 |
You can find examples of this interface element in the system in the Web Dynpro application WDR_TEST_UI_ELEMENTS, and in the component WDR_TEST_EVENTS in the view LinkToAction.