Tuesday, June 10, 2008

Using Parameters to Call a Web Dynpro Application

Use

The URL parameters of a Web Dynpro application are defined by the main component.

The window of a component has one or more inbound plugs, and these may have parameters. If a parameter is defined for an inbound plug, it must be assigned a value at runtime. Usually the URL call will transfer the parameter value to the inbound plug. Alternatively, you can set a default value for this parameter in the Web Dynpro Explorer: Display Application. This will be overwritten at runtime by the value of the URL parameter. If a default parameter is defined in the application, the value is optional.


If neither a default value is set, nor a URL parameter transferred, a runtime error is triggered.

See also:

URL of a Web Dynpro Application

Procedure

...

1. In the component, switch to the window editor.

Here you can change the predefined inbound plug, or create a new inbound plug.

a. Specify the plug as a startup plug (Startup).

b. The data type should be string, since as yet the data cannot be converted or checked.

c. Activate the component.

2. In the application specify the component to be called, the window, and the startup plug. You can now specify the parameters.

Apart from the default parameters, the startup plug parameters are also available and can be assigned a default value. If no default value is assigned, the parameters have to be specified as URL parameters when the application is called.

3. Call the application.

The URL parameter overwrites the application parameter.

No comments:

Archive