Show TOC

 Web Dynpro Action at Runtime - Interface IWDActionLocate this document in the navigation structure

Definition

At runtime, the action is represented by the IWDAction interface that allows access to actions in a view controller.

Use

A UI element can be bound to an action. The action is executed when an event occurs that was triggered by a specific UI element. If an event occurs, the event handler implemented within the corresponding view controller is called (see Creating an Action at Design Time ).

Description of Methods
  • ·        getActionParametersThis method enables you to access the action parameters of the action if they are required for the next call of the event handler. This method should only be used if a non-validating action returns a validating action and the returned validating action requires parameters. In this case, the parameters of the returned validating action within a non-validating event handler can be specified (see Action Types ).
  • ·        getControllerThis method returns the controller of the action.
  • ·        isEnabledThis method specifies whether or not an action is currently active.
  • ·        isValidatingThis method specifies whether or not an action is a validating action.
  • ·        setEnabledSets the enabling status of the action. If an action is not active, the Web Dynpro Framework ensures that the event handler is also not available for other UI element events.
Method Overview of the Web Dynpro Action API
Method Name Parameter Return Value Short Description

getController

IWDController

Returns the controller of the action.

getActionParameters

IWDParameters

Returns the action parameter of the action.

isEnabled

Boolean

Returns the Boolean value that indicates whether or not the action is enabled.

isValidating

Boolean

Returns the Boolean value that indicates whether or not the action is a service request.

setEnabled

(Boolean enabled)

void

Sets the Boolean value that activates or deactivates the action.