Professional Documents
Culture Documents
Configuration Programming Exercise: Configuration Theme: Creating A Configurable Component
Configuration Programming Exercise: Configuration Theme: Creating A Configurable Component
Exercise
Chapter: Configuration
Theme: Creating a configurable component
1 Development Objectives
This exercise has the following objectives:
Decide via a configuration whether an empty result table is displayed or a sepate view
displaying a text of your choice.
2 Result
1
Configuration Programming
Exercise
Template Solution:
Web Dynpro Component: WD_13S_CONFIGURATION
Application: WD_13S_CONFIGURATION
3 Developing
2
Configuration Programming
Exercise
3-4 Create an application configuration and a component configuration
Next, right click on the application's name and create a configuration. As
a result the browser pops up and displays the configuration editor. In the
configuration editor, change the application configuration’s name to e.g.
WD_##_APP_CONF1 and click create.
In the next step you need to create a component configuration for your
comp WD_##_CONFIGURATION. Enter a name in the field
Configuration name e.g. WD_##_COMP_CONF1 and press the change
button on the ‘Component Configuration’ group. Then you see a tab with
the component controller's context as you have defined it. Choose
SETTINGS, enter a text in EMPTY_TABLE_TEXT field, click again on
settings and then on the save button.
You should see the message 'Data successfully saved'. Refresh the se80
navigation tree and you should see an entry for the component
configuration and for the application configuration when you expand the
application node. Then right click on the newly created application
3
Configuration Programming
Exercise
configuration and test it. The application comes up in the browser and
when you enter a selection set so that the result is empty, the
NOTHING_FOUND view is displayed. Create another two
configurations, one where the EMPTY_TABLE_TEXT contains just
another text and one with no text at all. In this case you should see an
empty table displayed.
4
Configuration Programming
Exercise