Skip to Content
0
Former Member
Mar 19, 2008 at 09:12 AM

External Window Title

29 Views

Hello geeks,

I created a component with a view having some links to different associated actions. I have one basic window and one application.

I am using the following code to open an external window on click of a link.

DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.
  DATA lo_window_url     TYPE STRING.

  lo_window_url = '/sap/bc/webdynpro/orm/orm_report'.
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).


  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
     url            = lo_window_url
    title          = 'My Report 1'
*    modal          = ABAP_FALSE
    has_menubar    = ABAP_FALSE
    is_resizable   = ABAP_TRUE
    has_scrollbars = ABAP_TRUE
    has_statusbar  = ABAP_TRUE
    has_toolbar    = ABAP_FALSE
    has_location   = ABAP_FALSE
    RECEIVING
      window         = lo_window
      .

  lo_window->open( ).

On executing the application, when i click on the link the external window is opening fine but the title is coming from the application description and not what i specified in the title = 'My Report 1'

How do i display a different title on the window ?