Thursday 23 July 2015

Different types of window creation in Webdynpro - Part1

We can create windows in dynpro component and can use them in many different ways. This post will have number of parts and each part will be dedicated for one type of window creation.

So here we go with the first type.

Creation of external window: This type of window creation will be done when we want to open another webdynpro  application in next tab.

As the name suggests itself, this would be an external window. On some event in one window, another window will be created but that 2nd window will get open in a different tab. So our first window and second window exists side by side.

Below are the major steps which we will follow.
  1. Create one webdynpro component which will have one button on the view.
  2. Create another webdynpro component which also can have anything on the screen. For ease, I am only displaying one text message here. Create application for this component.
  3. Now in the first componet, do the below coding in onAction event of button.
  •  Get the URL of the 2nd webdynpro application which we have crated in 2nd point. Do this by using method CONSTRUCT_WD_URL of class CONSTRUCT_WD_URL.

  • Use CREATE_EXTERNAL_WINDOW method of interface if_wd_window_manager for creation of external window.
Create application for first component and test it.

Now clock the button next. A new tab will get open with the window of 2nd WD component.

 Happy Learning :)

No comments:

Post a Comment