Start of Content Area

Object documentation Web Dynpro Action at Runtime – Interface IWDAction  Locate the document in its SAP Library 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

·        getActionParameters
This 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).

·        getController
This method returns the controller of the action.

·        isEnabled
This method specifies whether or not an action is currently active.

·        isValidating
This method specifies whether or not an action is a validating action.

·        setEnabled
Sets 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.

  

  

 

End of Content Area