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 ?

Hello Amol,
it doesn't work if the client was a browser. Btw: This is a limitation of the browser itself, not Web Dynpro.
Best regards,
Thomas

Similar Messages

  • Problem while setting External Window Title

    Hello,
    This should actually be a straighforward task, but I don't understand why I am facing a problem.
    I am opening an external window (browser) and trying to set the title of the window. Here is the code
         IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");     
         win.setTitle("Title");     
         win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
         win.removeWindowFeature(WDWindowFeature.MENU_BAR);
         win.removeWindowFeature(WDWindowFeature.STATUS_BAR);
         win.removeWindowFeature(WDWindowFeature.TOOL_BAR);     
         win.setWindowPosition(100, 150);
         win.show();  
    The window opens well with the right URL. But the title does not seem to be changing at all. The URL is displayed instead of the title. Where could I be going wrong?
    I have placed this code within an action event
    We are using EP7 SP10.
    Thanks and Regards,
    Reena

    Hi Reema
    IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Title");
    win.setTitle("Title");
    in the above code createNonModalExternalWindow(url,"Title");  here it self you are setting the title , just comment this statement [win.setTitle("Title");]
    and see the <b>source</b> of the external window whether you can see the title as you mentioned or not
    Best Regards
    Chaitanya.A

  • Hiding URL in the title bar of external window

    Experts -
    Scenario:
    On click of 'LinkToAction' element, we are opening up a pdf document (stored on portal content server)
    in an external window, using:
    CALL METHOD LO_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW
        EXPORTING
          URL            = LV_HOSTNAME
          TITLE          = 'My Title'                             "Does not work
          MODAL          = ABAP_FALSE
          HAS_MENUBAR    = ABAP_FALSE
          IS_RESIZABLE   = ABAP_TRUE
          HAS_SCROLLBARS = ABAP_TRUE
          HAS_STATUSBAR  = ABAP_FALSE
          HAS_TOOLBAR    = ABAP_FALSE
          HAS_LOCATION   = ABAP_FALSE
        RECEIVING
          WINDOW         = LO_WINDOW.
    We have a requirement to hide the location bar and the title of the window (in which the PDF is displayed). We are able to hide the location bar but the URL still appears in the title bar.
    We have tried the following code to set the title, but it is not working.
    CALL METHOD LO_WINDOW->SET_WINDOW_TITLE
      EXPORTING
        TITLE  = 'My Title.                    "Does not work
      LO_WINDOW->OPEN( ).
    Any help on how to achieve this will be appreciated.

    This is not a web dynpro restriction - but one that has been brough about by the browser designers.
    Because of the number of people falling to phishing attacks the designers of browser have all decided to always show the URL of any popup HTML windows. This stops malicious pop-ups from pretending to be something they are not and stealing user's data.
    If the world were a nicer place you could have your pop-up without the URL - but it isn't and it's probably better that your users have a least a little help in identifying if they are being scammed.
    Cheers,
    Chris

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • Closing an external window

    Hello,
    I would like to close an external window dynamically by calling the method
    lr_myextwin->close( ) when some event occurs.
    This does not seem to work since the opened external window is still open...
    Ofcourse it is possible to manally close the external window, but I would like it to happen dynamically.
    Can any brief me in, if it possible.
    Cheers,
    Gerald

    Hi Jagruti,
       Its possible to close the external window dynamically.What you have to do is , while creating the external window instance, save the instance in the component controller as an attribute .
    Which means create an attribute in the component controller of type IF_WD_WINDOW ( In this case i have created LO_POP_UP ).
      l_cmp_api = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
       CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW
         EXPORTING
          MODAL                = ABAP_TRUE
           WINDOW_NAME          = <WINDOWNAME>
          TITLE                =
          CLOSE_BUTTON         = ABAP_TRUE
          BUTTON_KIND          =
          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
          CLOSE_IN_ANY_CASE    = ABAP_TRUE
          MESSAGE_DISPLAY_MODE =
          DEFAULT_BUTTON       =
         RECEIVING
           WINDOW               = l_final_window
    When you get the instance of the window.Save it in the component controller attribute.
    wd_comp_controller->LO_POP_UP = L_FINAL_WINDOW.
    CALL METHOD L_FINAL_WINDOW->OPEN
    At later point of time , you could get this instance from compenent controller and you can call that in your method whenever and whereever necessary , so that you could close the window in a smooth fashion.
    mywindow = wd_compcontroller->LO_POP_UP
    mywindow.close().
    Thanks
    Anzy.
    mark this thread as closed if this solves your problem.

  • Error while opening the external window

    Hi
    I am trying to open an external window on click of a button.
    This is the piece of code I have written
    url = "http://www.google.com";
    url = java.net.URLEncoder.encode( url ) ;
    String title="External Window";
    //IWDWindow win=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
    IWDWindow win=wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,title );
    win.show();
    //win.open();
    I have tried both show() and open() method. and also createExtrenalWindow and CreateNonModalExtrenalWidnow. But I am getting the follwing error.
    Application error occurred during request processing.
      Details:   com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'dc.gs.com/osrch' and application 'http:' are not deployed on the server. Please check the used URL for typos.
    Exception id: [0017087D8739002C0000025600001B9C00045A7873FC3E52]
    This is the URL it got in the external new window..
    http://<host>:50000/webdynpro/dispatcher/dc.gs.com/osrch/http%3A%2F%2Fwww.google.com
    I know the www.google.com is concatenating with portal URL , hence it is throwing the error.
    How to get rid of the portal path
    thanks
    PK

    hi,
    You can try the following code:
    IWDWindowInfo info = wdComponentAPI.getComponentInfo().findInWindows("PopUpWindow");
        IWDWindow window = wdComponentAPI.getWindowManager().createWindow(info , true);
        window.setWindowPosition(WDWindowPos.CENTER);
        wdContext.currentContextElement().setVa_win(window);
        window.open();
    This works fine.
    Thanx.

  • Create external window with webdynpro application

    Hi,
    is it possible to create an external window with another application?
    The method if_wd_window_manager~create_window_for_cmp_usage would be great. But this method create only a modal popup.
    Greetings
    Marcus

    Hi,
    We can create external window  using below method.
    lo_api_component   = wd_comp_controller->wd_get_api( ).
      lo_window_manager  = lo_api_component->get_window_manager( ).
      lo_window          = lo_window_manager->create_external_window(
            url          = l_url( "URL of the webdynpro application")
            title        = 'Submitted candidate'
            has_menubar  = abap_false
            has_toolbar  = abap_false
            has_location = abap_false  ).
      lo_window->open( ).
    Regards,
    Lakshmi.

  • Application lock on open external window

    Hi everybody,
    I have problems with opening a new browser window pointing to a folder on the network.
    If the user has access to the folder everything is working fine.
    If the user has no rights to access the folder, the user gets an error message and the window stays empty. After clicking okay on the error message and closing the window the  user can continue working in the application.
    If the folder which should be display does not exist the user gets an error message.
    After clicking oay on the message he can return to the application. But there the 'progress circle' is still running and it cannot abort or do anything! The user has to close the application and login again.
    Is there a way to handle the external window in any way after having it opened and the calling method was left?
    Any hint or advice is highly appreciated!
    Best regards,
    Roland

    Hi,
    Do this way... So that there will not be a minimise option, close option. and control will be there inside the Window and till the time user closes the window he cannot perform any actions on any other screens.
         //Added below code to open a new window
              IWDWindowInfo info =
                   wdComponentAPI.getComponentInfo().findInWindows("WD_vendorTable");
    //Where WD_vendorTable is a window with the desired view embedded inside it.
              IWDWindow win =
                   wdComponentAPI.getWindowManager().createModalWindow(info);
              wdContext.currentContextElement().setVa_VendorWinName(win);
    //Save this window information in a context variable(declared at component level and mapped to the parent view and to the window(child) view)
              win.setWindowSize(300, 300); //Desired window size
              win.setWindowPosition(600, 100); //Desired window position (from top left cornor)
              win.setTitle("Vendor Details"); //Desired window title
              win.show();
    To close this window
    create a button inside it and inside the button's action
    IWDWindow win=wdContext.currentContextElement().getVa_AssetNoWinName();
    win.destroyInstance();
    Regards,
    Srinivas.

  • [External Window] Reuse an existing window

    Hi,
    From what I have read, this is not possible to close an external window from the parent web dynpro application (external means opened through create_external_window method).
    In spite of what the SAP Help documentation is saying (http://help.sap.com/saphelp_nw70/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm), I did manage to open an external window from SAP Enterprise Portal .
    As this is impossible to close the external window* (programmatically !), I was wondering whether it was possible to "reuse" the window (usually, setting the target attribute of an HTML hyperlink does this trick). Unfortunately, I haven't found the target attribute (which is different from the title attribute).
    Is this possible to inject the target attribute in the new window?
    Thanks in advance.
    Best regards,
    Guillaume
    To be honest, there is lot of contradictions regarding this aspect. Indeed, it is stated in NET311 Training guide that it is possible to close a window opened with create_external_window and OSS Note [1234843|https://service.sap.com/sap/support/notes/1234843] also seems to say so (we are operating 7.01 SP03)
    Edited by: Guillaume Garcia on Jan 7, 2010 11:12 AM

    Unanswered

  • Window title and borders for Render Window (3D Picture Control)

    Hi all,
    some more questions on the 3D picture control.
    I use the external render window, because in the solarsystem.vi demo, the 3d picture control appears to be very slow. The render window is much faster there. (I haven't tried it for my application though.)
    I'd like to display a full screen 3D animation. How the hell do I get rid of the window title bar (I can set it to empty, but the bar itself remains), and the borders of the render window?
    Regards
    Matthias

    The update speed of the solarsystem example is 2 ms (in the timeout event). This would result in 500 updates per second, witch is totally redundant. Put it on 33 ms, and you'll still get smooth updates, and much better performance! No monitor will update 500 times a second, and your eye can only see 25-30 frames per second anyway.
    With this, you could probably use the normal 3d control (indicator actually). The window doesn't have any way to remove the title bar.
    (You can do some things with window API's, but removing the titlebar is only possible by creating a new class, a new window, and then it would be impossible to tell LabVIEW to use this window...)
    If you'd make the render window full screen, how would you close your application? There is no way (or I'm missing it) to get events back from the render window.
    Regards,
    Wiebe.

  • How to create external window on top of other window?

    I create an external window from my web dynpro component. How to make sure the new window is created on top, not in the back? My web dynpro component is accessed via sapgui and browser.
    Thank you
    Edited by: Vincent Cao on Jun 15, 2010 5:25 AM

    Yes, by default it should be on top.But mine is displayed in the background.
    Logic is:
    1 Window A (or SAPGUI A) has a pop window PA with a button "OK"
    2 Press "OK" button, PA window is closed. And fire an event to window A
    3 A get the event, refresh itself and create an external window.
    Part of codes:
          window = lo_window_manager->create_external_window(
              url            = i_url
              title          = title
              modal          = modal  " abap_false
              has_menubar    = has_menubar "abap_true
              is_resizable   = is_resizable "abap_true
              has_scrollbars = has_scrollbars "abap_true
              has_statusbar  = has_statusbar "abap_true
              has_toolbar    = has_toolbar "abap_true
              has_location   = has_location ). "abap_true
          IF width IS NOT INITIAL AND height IS NOT INITIAL.
            window->set_window_size( width  = width  height = height ).
          ENDIF.
          window->open( ).

  • How to display a view which contain interactive form in an external window

    Anyone know how to display a view which contain interactive form in an external window?
    I managed to display the view in an internal window with the following code:
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PdfReportWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    For external window, I tried this method : wdComponentAPI.getWindowManager().createExternalWindow(String URL, String title, boolean modal) but there are no parameter for view name?
    Maybe this is not the correct way, really appreaciate if anyone can help.

    Hi,
                U need to the following
               1.Create another window
               2.Create a view in it tat contains Interacive form element.
               3. call this window dynamically thru the first window by creating a context element of IWDWindow  type
    The code may help:
      IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("SearchEmpwind");
          IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
          window.setWindowPosition(WDWindowPos.CENTER);
          window.setWindowSize(400, 250);
          window.open();
          wdContext.currentContextElement().setEmpSearchWind(window);
    Regards
    Ishita

  • Open external window from  custom controller

    I have to write code to open an external  window. It should be done from the custom controller and not from component. when i use the following code i get error " The method getWindowManager() is undefined for the type IWD Controller.
    Pls note that I am using IWD controller here..
    IWDController component = wdThis.wdGetAPI();     
    IWDWindow helpWindow =
              component.getWindowManager().createExternalWindow(
                   helpUrl,
                   "help",
                   false);
    Pls help..

    Hi,
    Use
    wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(URL, title, modal)
    Regards
    Ayyapparaj

  • Call selected report in new External window

    Hi ,
    I have a dropdown with 10 reports. say exaploe Report1, Report2......etc
    Now when i selct a Report1 from the drop down and click on PintReport button , I would like call a new External Window. This exteral window should display the data in a table from executed related reportRFC1.
    Please can you give some advice what is the best approach to achieve this.
    Thanks
    Krish

    Hi,
    if you have the output of your reports as HTML, you can easily use this:
    html = htmlheader + htmlBody + htmlfooter;
    final IWDCachedWebResource resource = WDWebResource.getPublicCachedWebResource(html.getBytes("UTF-8"), WDWebResourceType.HTML, WDScopeType.APPLICATION_SCOPE, wdComponentAPI.getDeployableObjectPart(), "Title");
    resource.setResourceName("HTML_inline.html");
    resource.setAttachment(false);
    resource.setReadOnce(false);
    resource.setMakeCopy(true);
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(), "New Window Name");
    window.show();
    Maybe you can use wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(), "New Window Name"); In an other way. It's a method, that opens a new Browser Window.
    Best regards,
    Christian

  • Open external window / window size

    Hello,
    is there a possibility, to open an external window and change the browser to fullscreen mode?
    Regards

    Hi,
    Check this code for Calling the External window with in the application.
    DATA: l_cmp_api           TYPE REF TO if_wd_component,
             l_window_manager    TYPE REF TO if_wd_window_manager,
            window_result type ref to IF_WD_WINDOW.
      l_cmp_api           = wd_comp_controller->wd_get_api( ).
      l_window_manager    = l_cmp_api->get_window_manager( ).
    *  IF wd_this->m_popup1_1 IS INITIAL.
        wd_this->m_popup1_1 = l_window_manager->create_external_window(
                 url  = 'ur URL
    *              title          = 'My Report 1'
    *  ENDIF.
      wd_this->m_popup1_1->open( ).
    Here m_popup1_1 is the type of IF_WD_WINDOW.
    Thanks.

Maybe you are looking for

  • How to update from Windows 8.1 Eval to Full version ?

    Hi All, I have a issue. I had installed the Windows 8.1 Eval 90 days edition. I need to update this to Full version by entering the product key. But how ever it is not accepting it. Is there any other way of updating from Windows 8.1 Eval to full wit

  • Insurance document at the time of GR?

    Dear SAPIENTS, Please suggest for this scenario. Goods reciept has been done for the material. Material found in damage condition.Now I want to claim insurance. At the time of goods reciept what is to be done. I want an insurance document is to be ge

  • How do I find the Kindle e-book I purchased for my ipad mini?

    I downloaded the Kindle app.  Assumed it would be there, after the purchase. Yes, I did send it to the device after the Amazon purchase. I can't find it..... or is it not an available feature on the mini? help!

  • Error 1017

    HI was browsing online and a message stating that iOS had crashed due to an error 1017.com and that I should call technical support on 0800 411 8044. If I tried to cancel error message it just reoccurs not allowing me to access any websites. I have r

  • Miro bapi changing item

    Hi all, i`m looking for a BAPI wich change an invoice. I need to change field RSEG-KZMEK only but BAPI_INCOMINGINVOICE_CHANGE don`t have this field. What can i do? Thanks & sorry ab my english