Preparing the Web Dynpro Application

Use

To enhance a Web Dynpro application with a side panel, only a few changes have to be made.

Procedure

Add PageHeader

To display the link that the user needs to open the side panel, you require a PageHeader UI element in the View where the panel is to be opened.

  1. In your Web Dynpro application go to the View from where the side panel is to be opened, and add a PageHeader UI element with ID PAGE_HEADER. The name of the ID must be precisely this.

  2. In this PageHeader add a TransparentContainer as a title content.

  3. As the Layout for the TransparentContainer select MatrixLayout or FlowLayout.

Define Action

  1. In this View create an action with the name OPEN_SIDE_PANEL, and save it.

  2. Go to the action handler method ONACTIONOPEN_SIDE_PANEL, and add the following code:

    cl_wd_side_panel_api=>get_api( )->open( ).
                      
  3. Insert the following coding into method WDDOINIT of this view:

    cl_wd_side_panel_api=>get_api( )->init( view_controller = wd_this->wd_get_api( ) open_action_name = 'OPEN_SIDE_PANEL' ).