How to auto close popup window of UWL?

Hi everyone! I have developed a web dynpro abap application that is being launched by the UWL in a new window. How do I close the window after the web dynpro application is done processing? I cannot use exit-plugs as these don't work in the portal. If I use the portal navigation classes(absolute and relative) these ask for a target address but what I want is to close the window. Has anyone done this before? Thanks! Generous points will be awarded!

If you are ready to open your webdynpro application inside the UWL itself (instead of opening as a pop up) you can try the following. In such a case you can set a re-direction page which points out to the URL of your UWL on the required action (say "Approve" or "Reject"). Hence when you perform the required action your UWL screen will be re-displayed once again.
If you want only pop up from UWL then you may try posting it in Web Dynpro ABAP.
Thanks,
Prasath N

Similar Messages

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • How do I close 1 window at a time.

    How do I close 1 window at a time.

    You can also open the file menu via Alt+F to have a close Window item appear. This item wouldn't appear if the menu bar is visible and you would click File. This is one of the items that only show if you activate the menu bar via the keyboard.

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • Captivate 8: How do I close this window?

    I am not sure what to call it but how do I close this window and prevent it from popping up again please?
    Oh and is there a way to minimize the icon sizes on the toolbar?
    Thanks in advance.

    About the icon sizes...
    Assuming you mean these?
    If so... nope. Can't change them.
    But I can offer you a free membership to the "learning to live with it" club if you want. We are offering a buy one at regular price and get three free special today.
    Cheers... Rick

  • How to create a popup window that shows detail information when press submi

    hi,all
    how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
    how to do achieve this ?help plz .
    best regards
    hlee
    Edited by: hlee on 2011-4-15 上午1:26

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • How to display a popup window (DialogMessage) via code behind c#?

    hi all,
    How to display a popup window (DialogMessage) via code behind c#?
    I use sp 2013, in else case I want show the DialogMessage:
    if(condition)
    else
      HttpContext.Current.Response.Redirect(SPContext.Current.Web.Url+"/_layouts/TestError/ErrorDueDate.aspx");
    the above Redirect work good but I want show the error in a DialogMessage its better because of Usability and not redirect the user to new page...
    if not via code behind is there a better way to do it?
    thanks in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    thanks for you answer,
    And yes I includ them via CDN, like below:
    <script
    type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script
    src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"
    type="text/javascript"></script>
    <link
    href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
    rel="stylesheet" type="text/css"
    />
    But I get still the above error in my previes post.
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How can I allow popup window within secured site?

    How can I allow popup window wlthin NWA People.com(secured site)?
    Ineed to see Access.

    You can allow pop-ups in Safari via Settings > Safari > Block Pop-Ups set 'off'

  • How to Close Popup Window

    Hi All,
    in my main View iam calling a popup window, there i select some values and when i click select button i want to close the popup window.
    Thanks,
    RAju.

    Hi Raju,
    What you can do is while creating the pop window you can take the reference of window manager in some reference attribute of type IF_WD_WINDOW in component controller like.
    wd_comp_controller->gr_window         =
    lr_window_manager->create_window(
                         window_name            = 'Window'
    if_wd_window=>co_msg_display_mode_selected
    *                  close_button           = abap_true
                         button_kind            = if_wd_window=>co_buttons_ok
                         message_type           = if_wd_window=>co_msg_type_none
                         default_button         = if_wd_window=>co_button_ok
    **and now you can call the close method of window at the event you want to close pop up window.
    wd_comp_controller->gr_window->close().
    Regards
    Amol

  • How to get current PopUp Window

    Dear All,
    I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
    I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
    but in wdContext there is no method like .currentPopupElement(). plz help.

    Hi
    wdContext.currentPopupElement().getWindowInstacnce();
      Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
    For further plz go through these doc
    1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
    2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
    Best Regards
    Satish Kumar

  • Close popup window

    Hi experts,
    There is a popup window, with two button:
    SAVE
    CANCEL.
    i create the popup in this way:
    lr_popup = lr_window_manager->create_window(
        modal               = abap_true
        window_name         = 'WND_POPUP'
        title               = lv_text
        close_button        = abap_true
        button_kind         = if_wd_window=>co_buttons_yesno
        message_type        = if_wd_window=>CO_MSG_TYPE_NONE
        close_in_any_case   = abap_true
    lr_view_controller = wd_this->wd_get_api( ).
       lr_popup->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_yes
                       button_text       =  'Save'
                       action_name       = 'SAVE'
                       action_view       = lr_view_controller
                       is_default_button = abap_true ).
       lr_popup->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_no
                       button_text       = 'Cancel'
                       action_name       = 'CANCEL'
                       action_view       = lr_view_controller
                       is_default_button = abap_true ).
       lr_popup->open( ).
    My problem is that, if the user press the SAVE button,  then I have to make some checks, and if they don't pass, an error message should be created, and the popup shouldn't close.
    My question is: How can I do that?
    It's ok that if I use the paramter:
    close_in_any_case   = abap_false
    then the popup isn't closed, but how can I close it in the action handler method of the Close button (or the save when the cehcks are fine)
    Thnaks.
    N.

    Hi,
    When there are errors do you want to display them on popup. If there are errors and user closes the window(click on close) button then these errors are shown in parent view rather on popup window.
    Do you want to handle this also..
    In addition to making that close_button as abap_false. there is a method to handle on button close in if_wd_window interface.
    Try to use and write the close window code.
    If you donot want to show the errors in parent view, In the abobe metthod for window close, clear all the messages and then close the window.
    check out this link -
    Re: Form field validation messages in pop-up window
    Regards,
    Lekha.

  • How to create a  popup windows

    Hi
    I have seen in Simon Collins application http://apex.oracle.com/pls/apex/f?p=20411:1:888811517916461 a popup windows.
    Can anyone help me, buil a popup windows like that or is there any tutorial where i can see how its done.
    Tanks

    Hi,
    You should have three processes: addPerson, getPerson and updatePerson. All three are "On Demand" processes. This is the PL/SQL code for each:
    addPerson
    BEGIN
    INSERT INTO EMP (ENAME, JOB, MGR, HIREDATE, SAL, COMM)
    VALUES (:P1_ENAME, :P1_JOB, :P1_MGR, TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'), :P1_SAL, :P1_COMM);
    END;getPerson
    DECLARE
    vRESULT VARCHAR2(1000);
    BEGIN
    SELECT ENAME || ',' || JOB || ',' || MGR || ',' || TO_CHAR(HIREDATE, 'DD/MM/YYYY') || ',' || SAL || ',' || COMM
    INTO vRESULT
    FROM EMP
    WHERE EMPNO = :P1_EMPNO;
    HTP.P(vRESULT);
    END;updatePerson
    BEGIN
    UPDATE EMP
    SET ENAME = :P1_ENAME,
    JOB = :P1_JOB,
    MGR = :P1_MGR,
    HIREDATE = TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'),
    SAL = :P1_SAL,
    COMM = :P1_COMM
    WHERE EMPNO = :P1_EMPNO;
    END;On the page, in the page's HTML Header setting, I have:
    &lt;script type="text/javascript"&gt;
    $(function() {
       $('#ModalForm').dialog(
        modal : true,
        autoOpen : false,
        buttons  : {
          Cancel : function() {
            closeForm();
          Add : function() {
            $('#ModalForm input[type="text"]').removeClass('ui-state-error');
             var valid = true;
            $('#ModalForm input[type="text"]').each(function() {
              if($(this).val().length == 0)
                $(this).addClass('ui-state-error');
                message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
                $('.msg').text(message);
                valid = false;
                return false;
            if(valid)
               addPerson();
    function openForm(pID)
       $('#ModalForm').dialog('open');
       $('#ModalForm input[type="text"]').removeClass('ui-state-error');
       var btns = {};
       btns['Cancel'] = function() { closeForm() };
       $s('P1_ENAME','');
       $s('P1_JOB','');
       $s('P1_MGR','');
       $s('P1_HIREDATE','');
       $s('P1_SAL','');
       $s('P1_COMM','');
       if(pID)
          initilizeForm(pID);
          $('#ModalForm').dialog({ title : 'Update'});
          btns['Save Changes'] = function(){updatePerson(pID);};
       else
          $('#ModalForm').dialog({ title : 'Add'});
          btns['Add'] = function(){addPerson();};
       $('#ModalForm').dialog('option', 'buttons', btns);
    function closeForm()
      $('#ModalForm input[type="text"]').val('');
      $('#ModalForm input[type="text"]').removeClass('ui-state-error');
      $('#ModalForm').dialog('close');
    function initilizeForm(pID)
       var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=getPerson', 0);
       ajaxRequest.add('P1_EMPNO', pID);
       var ajaxResult = ajaxRequest.get().split(',');
       $s('P1_ENAME', ajaxResult[0]);
       $s('P1_JOB', ajaxResult[1]);
       $s('P1_MGR', ajaxResult[2]);
       $s('P1_HIREDATE', ajaxResult[3]);
       $s('P1_SAL', ajaxResult[4]);
       $s('P1_COMM', ajaxResult[5]);
    function addPerson(pID)
       if (pID)
         updatePerson(pID);
       else
         var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=addPerson', 0);
         ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
         ajaxRequest.add('P1_JOB', $v('P1_JOB'));
         ajaxRequest.add('P1_MGR', $v('P1_MGR'));
         ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
         ajaxRequest.add('P1_SAL', $v('P1_SAL'));
         ajaxRequest.add('P1_COMM', $v('P1_COMM'));
         ajaxRequest.get();
         ajaxRequest = null;
         closeForm();
         gReport.search('SEARCH');
    function updatePerson(pID)
       if(!valid())
          return;
       var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=updatePerson', 0);
       ajaxRequest.add('P1_EMPNO', $v('P1_EMPNO'));
       ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
       ajaxRequest.add('P1_JOB', $v('P1_JOB'));
       ajaxRequest.add('P1_MGR', $v('P1_MGR'));
       ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
       ajaxRequest.add('P1_SAL', $v('P1_SAL'));
       ajaxRequest.add('P1_COMM', $v('P1_COMM'));
       ajaxRequest.get();
       ajaxRequest = null;
       closeForm();
       gReport.search('SEARCH');
    function valid()
       $('#ModalForm input[type="text"]').removeClass('ui-state-error');
       var valid = true;
       $('#ModalForm input[type="text"]').each( function() {
           if( $(this).val().length == 0)
               $(this).addClass('ui-state-error');
               message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
               $('.msg').text( message );
               valid = false;
               return false;
       return valid;
    &lt;/script&gt;And I have an HTML region on the page with the following settings:
    Region Header:
    &lt;div id="ModalForm" style="display:none; width:500px;"&gt;Region Footer:
    &lt;/div&gt;This region contains all of the page items - P1_EMPNO (hidden), P1_ENAME (text), P1_JOB (text), P1_MGR (select list), P1_HIREDATE (datepicker), P1_SAL (text) and P1_COMM (text)
    Apart from a bit of styling here and there, that's it
    Andy

  • How to develop a popup window in Oracle BPM WorkSpace?

    Hi,
    Normally, after developing and deploying an application in OBPM, we can see that particular application in the left hand side of the Oracel BPM Work Space web page. On clicking the respective application, it will start working after logging with appropriate user.
    My Question: On login with appropriate user, can i get a popup of that particular application and prompt me for inputs without clicking that link? if so how?
    regards,
    Srinivas.

    Hi,
    You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
    Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
    This way you can do the same and have a code in Component B to close your window.
    Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
    Regards,
    Daniel

  • Close Popup window in webdynpro abap.

    Hi,
    Can anyone tell me ...how to close the popup window through the action in webdynpro abap . In my popup window there is a button(i.e 'UPDATE') apart from that  default 'OK' button , I want that when 'UPDATE' button is pressed, along with the action window should be closed. I dont want to close the window by pressing 'OK' button at the botton
    I have used following code to open the popup window.
    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.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'POP_UP  WINDOW'
                       title                  = ''
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).

    Hi Dear,
    please try this code,
    DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.
    data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.
    data lo_window  type ref to if_wd_window.
    lv_view = wd_this->wd_get_api( ).
      lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).
       lo_window =  lv_wc ->GET_WINDOW( ).
       lo_window->CLOSE( ).
    Message was edited by: kumar.k kulanthaivel
    Regards,
    K. Karthikeyan

  • How to maximize a popup window?

    Hi,
    My issue:
    A popup contains data larger that the screen size, it therefore maximizes itself, meaning that it sets its WIDTH to 100%. But this is most unfortunate as WD does not recognise its own scrollbar as the end of the available screen and now the close button (cross) of the popup is beneath the scrollbar!
    When doing a "true" maximize by clicking on the button left to the "closing cross", it recognizes scrollbars and stays visible in total.
    My question:
    How can I programmatically access the maximize/fullscreen function? Interface IF_WD_WINDOW does not provide a corresponding method as far as I can see...
    Already tried:
    ...please no "put width and height to 100%" as I already stated that this is not what I want...
    Also setting width to 95% or the likes does not work, as the popup automatically sets 100% on refresh if there are to large contents.
    <br>
    I would appreciate your help on this!!
    Kind Regards,
    Robert

    Hi Robert,
    You can do any size related actions in POPUP, Actually we have SET_WINDOW_SIZE Method to set window size,
    But for popups it wont work.
    Please check this thread, check Thomos reply
    Re: Confirm Popup in Web Dynpro, window size
    Check using set_window_size.. but can't effect.
    How to reduce Popup Window Size?
    As suggested saravanan, check SAP NOTE also.
    Cheers,
    Kris.

Maybe you are looking for

  • Problems in the installation of Trial Version 71 CE SR3

    Hi, I am trying to install the trial version of NW 71 CE SR3. I donwloaded it from SDN. The target system is a Windows XP Prof SP2 with 2 Gb of RAM. The error I get is in the system requirements check. A swap file of 4096 Mb  is required and I do not

  • What is needed i QuickTime for Premiere import?

    My customer wants video to his Windows Premiere system. I am Mac/FCP and exported MOV files in original codecs, HDV and XDCAM EX. Now the customer cannot import the files, gets the dreadful messege "QuickTime lacks a component ....." To make it more

  • Duplex printing in reporting services

    I have been working on this problem for days. I have a report that is grouped and will be printed duplex (front and back). There is a page break after each group. I want to ensure that the start of a new group does not end up printed on the back side

  • SQL Query Modification

    Hi , I have created a SQL query using SQVI. But I need to write some additional conditions in the logic which are not possible through SQVI / SQ01. Therefore I am wondering ...... if we have some functionality where we can add my own logic/conditions

  • Where did Safari address field go?  How do I get it  back?

    My Safari address field disappeared>  What happened?  How do I get it back?