Skip to Content
author's profile photo Former Member
Former Member

External Window Title

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 ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 09:34 AM

    hi amol,

    try this method

    lo_window->SE_WINDOW_TITLE( 'XYZ' ).

    before method lo_window->open( ).

    Regards,

    janakiram.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.