Entering content frame

Procedure documentation Creating an External Window

You want the web page http://www.google.de to be displayed in an external window when Search (Google) is chosen.

This graphic is explained in the accompanying text

Procedure

You want the external window to be displayed when Search (Google) is chosen. In the procedure below, you assign the action ShowGoogleWindow to the Search (Google) pushbutton.

Creating an Action

...

       1.      Define the action ShowGoogleWindow in the EmailView controller:

Name of the Action

Without Validation

Event Handler

ShowGoogleWindow

unchecked

onActionShowGoogleWindow

 

Binding the Action to the Pushbutton

The e-mail input form is displayed in the EmailView of the Web Dynpro component PopupComp.

This graphic is explained in the accompanying text

       2.      Bind the action that you defined earlier to the corresponding pushbutton:

UI Element Name

Event Name

Action

Search_Button

onAction

ShowGoogleWindow

 

Implementing the Action Handler

       3.      Choose the Implementation tab page and add the following program code to the method onActionShowGoogleWindow().

onActionShowGoogleWindow()

public void onActionShowGoogleWindow(

         com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent ^

            wdEvent )

  {

    //@@begin onActionShowGoogleWindow(ServerEvent)

    IWDWindow window = wdComponentAPI.

        getWindowManager().createExternalWindow(

              "http://www.google.de",

              "Google - Search for an email address",

              true);

   window.open();

    //@@end

  }

This graphic is explained in the accompanying text You use the method createExternalWindow(java.lang.String URL, java.lang.String title, boolean modal) to create the external window from IWDWindowManager.

 

Result

You have enhanced the existing Web Dynpro application to display an external window.

 This graphic is explained in the accompanying text Next step:

Creating a Dialog Box

  

  

 

Leaving content frame