Entering content frame

Object documentation Web Dynpro LinkToAction API – IWDLinkToAction Locate the document in its SAP Library structure

Definition

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

Description of the UI Element Properties

·        design
Specifies the graphical design of the UI element. The type property can be filled with the following values and is represented by the enumeration type WDLinkType.

function

This graphic is explained in the accompanying text

Link is displayed underlined in the standard design.

navigation

This graphic is explained in the accompanying text

Link is displayed underlined and with a font color that is used for links already visited.

reporting

This graphic is explained in the accompanying text

Link is displayed not underlined in the standard design.

result

This graphic is explained in the accompanying text

Link is displayed not underlined.

Events

·         onAction
This attribute can assign the action that is to be executed when the user navigates to the link.

Note

Additional properties are defined in the corresponding superior interfaces. Refer to:
IWDLink, IWDAbstractCaption, IWDUIElement, IWDViewElement.

Overview of Inherited and Additional Properties

Name

Interface

Type

Initial Value

Bindable

Value Required

enabled

IWDUIElement

boolean

true

bindable

No

imageAlt

IWDAbstractCaption

String (TranslatableText)

 

bindable

No

imageFirst

IWDAbstractCaption

boolean

true

bindable

No

imageHeight

IWDLink

String (CSS size)

 

bindable

No

imageSource

IWDAbstractCaption

String

 

bindable

No

imageWidth

IWDLink

String (CSS size)

 

bindable

No

size

IWDLink

WDLinkSize

standard

bindable

No

text

IWDLink

String (TranslatableText)

 

bindable

No

type

IWDLinkToAction

WDLinkType

function

bindable

No

tooltip

IWDUIElement

String (TranslatableText)

 

bindable

No

visible

IWDUIElement

WDVisibility

visible

bindable

No

wrapping

IWDLink

boolean

false

bindable

No

Mobile Characteristics

The UI element LinkToAction supports the development of mobile applications for pocket PCs and BlackBerry wireless handhelds (see Mobile Web Dynpro).

However, several properties supported in the desktop browser cannot be used. These include:

Variances of the properties

Properties

Pocket PC

BlackBerry wireless handheld

enabled

ignored

ignored

imageAlt

ignored

ignored

imageFirst

ignored

ignored

imageHeight

ignored

ignored

imageSource

ignored

ignored

imageWidth

ignored

ignored

tooltip

ignored

ignored

type

ignored

ignored

wrapping

ignored

ignored

Methods in the Web Dynpro IWDLinkToAction API

Method Name

Parameter

Return Value

Short Description

bindingOfType

 

String

Returns the path of the content element to which the type property is bound. Returns NULL if no binding exists.

bindType

(String path)

 

Binds the value of the type property to the content element specified by the path.

getOnAction

 

IWDAction

Returns the action that is executed when the onAction event is triggered.

getType

 

WDLinkType

Returns the value of the type property.

mappingOfOnAction

 

IWDParameterMapping

Returns the parameter mapping for the onAction action.

setOnAction

(IWDAction action)

 

Sets the action that is executed if the onAction event is raised.

setType

(WDLinkType value)

 

Sets the value of the type property.

Additional methods described in the following APIs are available using inheritance: IWDLink, IWDAbstractCaption, IWDUIElement, IWDViewElement.

 

Note

For detailed documentation of all inherited methods, see the documentation for the relevant APIs.

  

  

 

Leaving content frame