Show TOC Start of Content Area

Object documentation Web Dynpro ParameterMapping API - IWDParameterMapping  Locate the document in its SAP Library structure

Overview

The parameter mapping is an instance of the UI element event. Therefore, it is defined at UI element level. You describe the parameter mapping for a UI element event using the wdDoModifyView method (see also Event Parameter and Parameter Mapping).

Since the parameter mapping is defined at UI element event level, each UI element event has a corresponding mapping information. Therefore, each UI element that can trigger events returns the mappingOf<UIElementEventName> method. This method returns an instance of the IWDParameterMapping interface. A button UI element with the onAction event provides the mappingOfOnAction that returns the current parameter mapping for the button instance.

Overview of Methods in the Web Dynpro ParameterMapping API

Method Name

API

Parameter

Return Value

Short Description

Method name: addSourceMapping

API:

IWDParameterMapping

(java.lang.String SourceName, java.lang.String NewName)

void

Adds a new parameter to the mapping list. The parameter is a constant value. It is read from the mapping source and stored in the IWDParameterMapping instance. The mapping source for actions is the number of UI element event parameters of a specific event. SourceName is the name of the parameter in the mapping source object. NewName is the parameter name after the mapping.

Method name:

addParameter

API:

IWDParameters

(String name, String value)

void

Adds a new value to the parameter list.

Name is the name of the parameter in the object. Value is the name of a constant value used as a parameter.

Method name:

addParameter

API:

IWDParameters

(String name, int value)

void

Adds a new value to the parameter list.

Name is the name of the parameter in the object. Value is the name of a constant value used as a parameter.

  

  

 

End of Content Area