Create Popup or external window

Hi,
I have some code in wdDoInit() of View. Before view completely loads, I require to popup a dialog box or external window with a message.
Is this possible to create Popup or external window from the first view of the application, such that the popup appears first and then the rest of the view loads?
Presenty I do not get any popup even though I have done coding for the same and straight away the view appears.
Thanks
Anagha
Message was edited by:
        Anagha Jawalekar

Hi Anagha,
First go to the Method tab of view and create two Event handlers (“Ok” and “Cancel”).
Then try this code inside wdDoInit() of view.
     String dialog = "Do You Want to Continue? ";
     IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"OK");
     IWDEventHandlerInfo CancelEventInfo = wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel");
     confDialog.addChoice(CancelEventInfo,"Cancel");
     confDialog.show();     
Check this links.
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/0f/134540631d6f13e10000000a1550b0/frameset.htm">Creating an External Window</a>
Generic Search
Re: opening a new window on lead select in a table!!!
Re: close a pop-up window
Regards,
Mithu

Similar Messages

  • Display a document pdf in an external window (WD ABAP)

    Hi all,
    I have an application <u><b>Web dynpro Abap</b></u> and it adds articles in a alv component that it is a purchase basket.
    This alv has a user function what opens a document pdf (interactiveForm)
    that shows the lines of the order. I would like that this pdf be displayed in an <b>external window</b>, and it was  independent of the window of alv of the purchase basket.
    This is possible. If it is possible, how can I do it?
    Regards,
    Ana

    hi
    good
    go through these links, which ll help you to give a clear idea about creating of the external window.
    http://help.sap.com/saphelp_nw04s/helpdata/en/0f/134540631d6f13e10000000a1550b0/content.htm
    thanks
    mrutyun^

  • 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.

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Create External Window in Webdynpro for Abap

    I am creating an external window using method CREATE_EXTERNAL_WINDOW.  The componentcontroller context and the assistance class attributes are not available in the Handledefault method of the external window.    Is there a way to pass data to the external window without using URL parameters?
    Thanks
    Cindy

    >@Thomas: with all your wonderful eLearnings on WDA is there one which covers this in any depth? As it would be nice to point people to it.
    No I can't say that I have ever created something specifically on this.  The ACFUpDownload example is closest simply because I use the cache table is a similiar way, althought I hesitate to recommend that eLearning in this situation becuase that aspect isn't central to the eLearning and it might just confuse things further.
    >don't forget about the possibility of database persistence of the data either -
    That was actually what I was talking about in server cookies as well. Server cookies are something that was originally created for BSP, but work fine in WDA as well.  They are just a cluster table where you can store any data you want and access in another session via a key. The nice thing about server cookies is that there is already a help class for read/write and batch job that can be scheduled to clear out expired entries.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/frameset.htm

  • Create external window in Web Dynpro Java

    Hello experts,
    I am new in web dypro java as well as enterprise portal. I have a problem concerning external window.
    I have created a button in my ivew in web dynpro java. By a click on this button, I would like to open an external window with a specified URL(ex: www.google.com).
    Could you help me how to do it please?
    Thanks in advance,
    Sengly

    Hi experts,
    I have found the solution. Thanks to this link and thanks to all:
    [Problem with linkToURL in a table column|Problem with LinkToURL in a table column;
    best,
    Sengly

  • Removing Address Bar from external window popup

    Hi
    I have a modal popup which opens up another popup as an external window. Now this child popup window is consistent with the original browser window and shows toolbar and address bar.Is there an attribute of commandButton in ADF which can help me remove the address bar in the child popup ?
    I have removed the toolbar by setting windowEmbedStyle="window" in the commandbutton that launches the external window popup.
    PS - Both the parent and child popup dialogs have been implemented as taskflows.The parent popup is a modal dialog and not a browser window.
    Thanks

    from the parent popup.. open the child popup using javascript. .add a c
    <af:commandButton text="Click Me">
    <af:clientListener type="action" method="popUp"/>
    </af:commandButton>
    function popUp(e) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600');");
    }

  • 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( ).

  • Create Popup Window to 3rd Party Website

    Hello,
    I've added a custom button to the Opporunity, and I've also added an Event Handler for the button.  Inside the event handler, I'd like to costruct a dynamic URL, and finally call the URL in a separate pop-up window.  Does anyone know how to create the pop-up window?
    I looked at the Window Manager Interface Create Popup method off the Component Controller, however, it appears that I need to specify an Inteface View Name, Usage Name, etc., however, I'm trying to create a pop-up to something completely outside of CRM.
    Thanks,
    Matt

    Hi,
    The method described above is fine in most cases, but somtimes you need to construct the URL on base of user input.
    To cope with this issue and to be free of client side javascripting you could make use of component GSURLPOPUP.
    Just add a component usage and supply the needed values to the PARAMS interface node in WD_USAGE_INITIALIZE.
    Opening the popup should be trvial. For an example look here: CL_BT131QI__DETAILS_IMPL->OP_SEARCHPRODUCT().
    PS: I am still wondering how it is possible for Ismail to write from the future As I am just before ten and he is well after midday?!
    cheers Carsten
    Edited by: Carsten Kasper on Sep 2, 2009 9:35 AM

  • Create new external window and displays the viewdata as pdf?

    Hi,
    I have developped an application that will display some textviews and one table that displays 5 records,
    for this I want display as new External window and dispay in PDF the data what we have in view.
    advise me how to approach for external window and diplay as PDF.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Thanks for your reply,
    Here my problem is now I am getting the table values as output in the Jsp.
    In Jsp I want to create Button when I click that button I need to display an external window and display the table data what ever is available that will display new external pdf.
    I have developped the applcation by using of the three files table.java,tablebean.java,table.jsp and in portalapp.xml cretated the component.
    Now  how can I perform my action in that existed Jsp page and how to display extenal window i that how to generate the PDF.
    I am in learning stage in this.
    please elobarate with atleast some snippests.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

  • Open View or Window in a external window (popup)

    Hi experts!
    I have the following issue:
    - I know how to open a external window from a given URL, but my problem is that I want this new external window to open and show one of my own windows and I don't know how to get the window's URL. Any Idea???
    Please help or redirect me to some doc or post. Thanks.
    Osvaldo Silva

    Hi,
    If you want the url of the another window in your WD Component. As per my knowledge you need to have a seperate application to be created for this window also.
    For Example you have Window1 (View1 is embeded in this window) and Window2(View2 is embeded in this window). Now you need the url of the Window2.
    So for this purpose you need to create two applications for this WD Component.
    For example App1 (Created for Window1InterfaceView) and App2 (Created for Window2InterfaceView).
    Now use this below code to open the Window2 URL in a sepearate window.
    // Get name of deployable object this component belongs to
    String deployableObjectName =
    wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    Map urlParameters = new HashMap();
    // If there are any application parameters you need to pass to App2 you can set those in urlParameters
    // as urlParameters.put("key","value");
    try {
    // Get deployable object part of target application.
    // Precondition: assume, that other application belongs to the same
    // Web Dynpro Project (Deployable Object)
    WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart(
    deployableObjectName,"App2",WDDeployableObjectPartType.APPLICATION);
    // Get target URL based on deployable object part and URL parameters
    String urlToTargetApp =WDURLGenerator.getApplicationURL(deployableObjectPart, urlParameters);
    //Open this urlToTargetApp in external window.
    IWDWindow window = wdComponentAPI.getWindowManager(.createNonModalExternalWindow(urlToTargetApp,"Window2");
    window.show();
    } catch (WDURLException e) {
    messageMgr.reportException(e.getLocalizedMessage(), false);
    } catch (WDDeploymentException ex) {
    messageMgr.reportException(ex.getLocalizedMessage(), false);
    Note:/Warning:  We are opening another window using another WebDynpro application.
    Here it creates a seperate WDComponent instacne. You can't access Window1(View1)'s existing context data in Window2(View2). The only way is you can pass some data using app/url parameters.
    Apart from this as per my knowledge there is no other way to get the url for a Window.
    Regards,
    Charan

  • How do you create PopUp Layer Window?

    Hi!
    I have a question...
    How do you create PopUp Layer Window?
    PopUp Layer Window is a popup window that moves as an user
    scrolls up and down.
    And it cannot be blocked by popup bloacker.
    Please teach me!
    -p.b.p.

    Search the web for persistent layers.

  • Help Needed. Creating popup windows when creating an app. And a text search button

    Hi, I'm new to indesign and am having trouble creating popup windows when creating an app. Also i would like to create a text search button so that people can search text within my app. Can these things be done?? im using cs6 at the moment.

    Questions on creating apps with the Adobe Digital Publishing Suite need to be asked in the DPS Forum, where I've moved your question.

  • Is Create window instnce into External window?

    Hi All,
    I have small problem in creating window instace into new External window.
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI
    .getComponentInfo()
    .findInWindows("AddressbookWindow");
    IWDWindow window = wdComponentAPI.getWindowManager()
    .createWindow( windowInfo, true);
    window.setWindowPosition(300, 150);
    window.open();
    wdContext.currentPopupElement().setWindowInstance(window);
    This is the window instance But this winsdow instance I want to display in new external window .
    How can i do it .
    help me out.
    Advance thanks.
    Mandapati

    Hi Nageswar,
    I have a suggestion for you. Lets start off creating a new application which contains two different views View_1, View2. Create two windows Window_1, Window_2 and embed View_1 and View_2 respectively.
    Let View_1 and View_2 contain a Button UI Element.
    Create a dummy attribute in the comp_controller and map it to both the View controllers.
    Create a submit() method for your View_1 button's onAction event.Create submit() method in your component controller.
    Call comp_controllers submit() method from your View_controller's submit() method.
    You have to declare the following code in your comp_controller within //@@begin others **   //@@end code
    private IWDWindow excelLinkWindow;
    write the following code in comp_controller's submit() method...
    excelLinkWindow =
         wdComponentAPI.getWindowManager().createModalWindow(
         wdComponentAPI.getComponentInfo().findInWindows(
                   "Window_2"));
         excelLinkWindow.setWindowPosition(WDWindowPos.CENTER);
         excelLinkWindow.open();
    Create submit() method in View_2 and second_submit() method in comp_controller. Call second_submit() method from your View_2's submit() method.
    write the following code in your second_submit() method.
    if (excelLinkWindow != null) {
            excelLinkWindow.destroy();
         excelLinkWindow = null;
    Now deploy and run your application.
    Hope this helps.
    Regards,
    Rekha Malavathu.

  • Creating external window: Position, height, width

    Hello,
    does anyone of you know how to predefine the position, height and width when creating an external window from WD ABAP? I use the method IF_WD_WINDOW_MANAGER=>CREATE_EXTERNAL_WINDOW to open the external window. In the similar method IF_WD_WINDOW_MANAGER=>CREATE_POPUP_TO_CONFIRM there are some useful importing parameters like WINDOW_POSITION, WINDOW_WIDTH, WINDOW_HEIGHT I am missing in CREATE_EXTERNAL_WINDOW . I use the following code:
      data: lo_cmp_api type ref to if_wd_component,
              lo_window_manager type ref to if_wd_window_manager,
              lo_ext_win type ref to if_wd_window,
              lv_url type string.
      lv_url = [...]
      lo_cmp_api = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_cmp_api->get_window_manager( ).
      lo_ext_win = lo_window_manager->create_external_window(
        url = lv_url
        title = 'My Title' ).
      lo_ext_win->open( ).
    Thanks a lot and best regards
    Michael Umlauff

    Hello Heidi,
    perfect - now I have found the solution:
      lo_ext_win->set_window_size(
        EXPORTING
          width = '1280'
          height = '1024' ).
    Thanks a lot
    Michael

Maybe you are looking for

  • NFS Sender - No action in SXMB_MONI

    Hello, I've created an interface using the File Adapter (NFS) and I'm able to place files into a folder using the NFS File Adapter but when I create my sender Adapter it is unable to read files. I am not getting any attempts (error or otherwise) in S

  • HEEEELP! I want to get English SR onto my PowerBook...

    I want to get English SR from Older Software downloads (on floppies) to an old PowerBook 5300c. I don't want to strip the resource forks on the mac (I learned my lesson last time :p), so I am formatting floppies for Mac OS Standard, right. Then I end

  • Using weblogic.deployer to deploy multiple files?

    Is there way, when using the weblogic.deployer, to specify multiple files to be deployed in one command? I see the filelist for redeploy, but is there a way to deploy/undeploy multiple files in one command? Thanks.

  • SAP Data Quality Management: how to replace input fields

    Hi all, the input fields in the SAP DQM 4.0 Real time job Job_Realtime_DQ_SAP_Name_And_Address_Match are: REC_NUM NAME_FIRST NAME_LAST NAME1 NAME2 HOUSE_NUM1 STR_SUPPL1 STREET CITY1 COUNTRY POST_CODE1 REGION ADDR_TYPE MTCSTD1 MTCSTD2 PO_BOX POST_CODE

  • Samba stopped working

    I have a downstairs PC running Windows for the family, my Mum's laptop running Windows, and the PC in my bedroom running Arch. The Windows computers can access each other on the network, but they get an error about permissions when attempting to acce