Opening PopUp window not displaying 1st view in background

Hello,
I developed WDA with Tree UI element. now on click of childnode (UI elemment TreeItemType), i am opening window. below is the code that i put in 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_window(
                     window_name            = 'W_JOBCODE'
                     title                  = l_string
                 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_close
                     message_type           = if_wd_window=>co_msg_type_none
                     default_button         = if_wd_window=>co_button_close
  l_api = wd_this->wd_get_api( ).
  lo_window->set_window_position( position = if_wd_window=>co_center ).
lo_window->set_window_size( width = '900px' height = '900px' ).
  lo_window->open( ).
also i embeded view V_JOBCODE inside window W_JOBCODE.
my requirement is that when this window gets opened, my earlier view should be displayed in background. Now when the window is getting opened, the ealier view is not displayed at all. earlier i developed another WDA where i am displaying window on click of URL to Action UI element and there i am able to see the 1st view in background. I checked all things but not sure why for my current WDA, i am not able to see 1st view in background.
Please let me know if anyone has any clue.
Regards,
Chandra

Hi Chandra,
Use the below code to open a new window in the same component.
data: str type string,
          l_window1 type ref to if_wd_window_manager,
          l_cmp_api type ref to if_wd_component,
          result1 type ref to if_wd_window.
    call method cl_wd_utilities=>construct_wd_url
    exporting
      application_name = 'Component Name'
      importing
      out_absolute_url = str.
    l_cmp_api = wd_comp_controller->wd_get_api( ).
    l_window1 = l_cmp_api->get_window_manager( ).
    result1 = l_window1->create_external_window(
    url = str ).
    result1->open( ).
Regards,
Simi A M

Similar Messages

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • External Monitor will not display full view MS apps.

    I have a HDMI monitor that was previously working fine.  The other day I went to use Word and Excel and the applications would only appear in the lower toolbar.  When I would select them they would not enlarge.  They remained in a thumbnail view.  My email and Internet work as expected.  Any ideas what's causing this?

    Hello @Bjenkins,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your external monitor will not display full view Microsoft applications on your system, and that certain functions will not work on your desktop. How long ago did your applications work properly? I would be happy to help you, but first I would encourage you to post your product number for your computer. Below is a is an HP Support document that will demonstrate how to find your computer's product number. In addition, it will also help if you indicate which operating system you are using; and whether your operating system is 32 or 64 bit. The more information you can provide, the better!
    How Do I Find My Model Number or Product Number?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers!
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Command-T opens new window not new Tab with Snow Leopard

    Does anyone else have this issue? Command-T opens new window not new Tab with SL.
    And yes all my settings are correct!!

    Greetings,
    If your preferences for Tabs are correctly set (the top two checkboxes are checked) and it's still opening a new window, then it would seem your preferences may be corrupt. In that case, you should quit Safari, go to Home/Library/Preferences and delete the com.apple.Safari.plist file.
    Then restart Safari, setup your preferences again, and test to see if it works.

  • Yosemite - MacBook Air 10.10 - "Notes" does not open - "Preview" opens, but does not display PDF's - "iCal" works in new strange ways, as if no one checked its operation - Everything worked very well until Upgrade to Yosemite ! - Happen to others?

    Yosemite - MacBook Air 10.10 - "Notes" does not open - "Preview" opens, but does not display PDF's - "iCal" works in new strange ways, as if no one checked its operation - Everything worked very well until Upgrade to Yosemite ! - Happen to others?

    Thanks for your lengthy reminder dude, I have a similar Mac with yours. I suspect its a software fault because it happens after I upgraded to Lion, 10.7.2.

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Popup window not opening in IE 6.0, SP1

    Hi Friends,
    Whats the version information for Popup windows to open.
    Not able to view the popup window on Internet Explorer 6.0 , build 2800.1106, SP1.
    It gives Runtime Error.
    I can see the popup windows in IE6.0.2900.2180, SP2
    any clue?
    Thanks.
    Message was edited by: Nav

    Naveen,
      Normally the browser should support the javascript version you are using. The best way is to upgrade the browser to higher SP if it runs on a different SP.
    Usually, Javascript erros are very abstract, so tough to handle. So, got to be careful when coding.
    Check this link for details on Javascript erros etc
    http://www.irt.org/script/general.htm
    Hope this helps,
    Kumar

  • Popup window not populated on SAVE event

    Hi All,
    I am enhancing standard AIC_INCIDENT_H component on EH_ONSAVE event, requirement is  to display ComponentUsage "CUGSSurvey"
    , InterfaceView "SurveyWindow as Popup window , but there is a blank popup appeared
    On SAVE event i write the following code:
       IF gr_proctype_popup IS NOT BOUND.
        gr_proctype_popup = comp_controller->window_manager->create_popup(
                            iv_interface_view_name = 'SurveyWindow'
                            iv_usage_name          = 'CUGSSurvey'
                            iv_title               = 'Survey' ).
        ENDIF.
    lv_viewname2 = 'CUGSSurvey.SurveyOverviewWindow'.
    lr_viewset ?= me->get_subcontroller_by_viewname( lv_viewname2 )..
    lr_view_ctrl_par ?= lr_viewset->M_PARENT. ".
    current_sur_id = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYID->collection_wrapper->get_current( ).
    current_sur_ver = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYVERSION->collection_wrapper->get_current( ).
    * while current_sur_id is not initial.
          if current_sur_id is not bound.
            return.
          endif.
             try.
    *        data: rv_result type string.
            CALL METHOD current_sur_id->GET_PROPERTY_AS_STRING
              EXPORTING
                IV_ATTR_NAME = 'SURVEY_ID'
              RECEIVING
                RV_RESULT    = RV_RESULT
            catch cx_crm_cic_parameter_error.
          endtry.
          RV_RESULT = 'FDB_FORM_01'.
               TRY.
                CALL METHOD current_sur_id->SET_PROPERTY_AS_STRING
                  EXPORTING
                    IV_ATTR_NAME = 'SURVEY_ID'
                    IV_VALUE     = RV_RESULT
    *          data: lr_core TYPE REF TO cl_crm_bol_core.
    *          lr_core ?= cl_crm_bol_core=>get_instance( ).
    *          lr_core->modify( ).
    *            exit.
                 CATCH CX_SY_CONVERSION_ERROR .
              ENDTRY.
            if current_sur_id is not bound.
            return.
          endif.
             try.
    *        data: rv_result type string.
            CALL METHOD current_sur_ver->GET_PROPERTY_AS_STRING
              EXPORTING
                IV_ATTR_NAME = 'SURVEYVERSION'
              RECEIVING
                RV_RESULT    = RV_RESULT2
            catch cx_crm_cic_parameter_error.
          endtry.
          RV_RESULT2 = '0000000000'.
               TRY.
                CALL METHOD current_sur_ver->SET_PROPERTY_AS_STRING
                  EXPORTING
                    IV_ATTR_NAME = 'SURVEYVERSION'
                    IV_VALUE     = RV_RESULT2
    *          data: lr_core TYPE REF TO cl_crm_bol_core.
    *          lr_core ?= cl_crm_bol_core=>get_instance( ).
    *          lr_core->modify( ).
    *            exit.
                 CATCH CX_SY_CONVERSION_ERROR .
              ENDTRY.
      gr_proctype_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      gr_proctype_popup->open( ).
    but on save event this screen appeared:
    I want this view with survey form, filled by user and then SAVE the incident.

    Hi Mohammed,
    Try setting the enabled property to false for ROOTUIELEMENTCONTAINER in that view. It should work out for you.
    Regards,
    Uday

  • Lion finder window not displaying file info

    I have a MacPro which I've updated to Lion. I have four hard drives installed. When I open a finder window from three of the drives, I get the expected (from Snow Leopard) behavior: in icon view, images display pixel dimensions,  movies or audio files display run time. This is assuming I have Show Item Info clicked in the View Options. But if I open a finder window on my start-up drive the file info is not displayed. If I open the View Info panel and click/unclick the Show Item Info ckeck box, I can see space expand or contract beneath the file, but no info is displayed. Is this a bug or a "feature"?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, or by a peripheral device.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain iMacs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • P6 EPPM V8.2.2.8 window popup windows not showing.

    I've installed Primavera V8.2.2.8 EPPM on 64bit Windows 2008 R2 sp1 server with weblogic 10.3.5 using a 64 bit JDK (1.6.0_27). The database is 11g on another rhel5 server and has sample data loaded. Initially the install worked great for a bit. I was able to move around to different windows all worked fine. But soon after anything with a popup window (projects, users access, ) will not load and either shows an error like "Fail to load data..Please..." or just shows loading data then stops. In the application settings window changes to the screen does not allow the save button to appear (another pop is displayed before that happens). There are no errors in any logs, no connection errors, no information what so ever. I am using IE 9 and the block pop windows is unchecked.
    The same thing happen on a rhel5 install with weblogic 10.3.6. Oddly, there is another install where I work that functions just fine (via my desktop's browsers) but is on some very old equipment like windows 2003 and oracle 10g.
    Obviously, this is about Primavera P6 EPPM v8.2.2.8 web application; the professional desktop client works fine with the same database.
    Also, I did the same install on a rhel5 box with weblogic 10.3.6 and a 1.6_45 jdk. The same "problem" develops.
    Upgrading to V8.3 is not an option. I may be able to move to JDK 1.7, but i sure would like to get JDK 1.6 to work.
    Thanks your help and let me know if there is any other info that could help.

    JRE1.6_027...
    I am pretty sure it is not a browser issue since I can get see all web functionality with the same IE browser connecting to an existing install that is running on rhel5.1/weblogic 10.3.5/jdk1.6._27.
    I have some more info:
         * no ssl
         * pc with browser in windows 7
         * the windows server is on virutal boxes (wmware)
         * the databases are on virtual boxes (vmware, rhel6)
         * also, the following url never comes back: http://someserver.somedomain:7003/p6/action/pm/openprojectpicklist
    Can someone tell me what SQL is used to run struts action/pm/openprojectpicklist? I am starting to think this is some bizarre database issue or state. Today, I built a new 11g database on a windows server box (virtual) and installed a Primavera eppm p6 8.2.2.8 database in it with no sample data. It worked nicely (today, that is). Like I said it seems to work at first then after a while...breaks.

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • Menu windows not displaying properly in Acrobat 11 STD

    When I try to print any PDF file (clicking File->Print) the Print Menu that opens is missing all text in the window incl all buttons. I tried installing a separate Adobe Reader in local Danish language just to test the application but this was worse. So uninstalled and sticking to Acrobat.
    I also tried click File->Properties and this is also not displaying properly.
    I fear this has something to do with Microsoft compatibility, but I don't know. I have MS Windows 7 Pro SP1 installed.
    The good news is I can guess the bottom 2 buttons - 'OK' (left button) and 'Cancel' (right button) which at least allows me to print in the default preferences.
    Any ideas how to fix? I have the latest update installed.

    I have been working together with Adobe support team to solve this. After multiple rootcauses we found the issue.
    The issue was caused by not having the default windows font 'Segoe UI' installed. Sounds strange that Win 7 does not come with the font that is used by this application but the tip worked.
    Google a website to download the font from, I used 'Fontpalace.com' - install the font - and voila the issue is solved.

Maybe you are looking for

  • How can i remove a name that comes up as the Home user next to the House symbol?

    For some reason when the House symbol appears in any incidence on my Mac Pro lap top although it is only me that has ever used it it shows the name Sharon next to the house which isn't mine! I can only presume it has been imported across with other s

  • Question about File upload functionality in Weblogic

    Hi,     We're currently trying to deploy a web application on the weblogic 12c server (via war file). And the app needs to upload a text file onto the a temperary directory within weblogic server. And on the web page side, we use JQuery File upload p

  • Retrieving trashed iPhoto photos

    HD was too full; external HD purchased to back up iPhoto images. This was done by dragging the iPhoto program to the external HD (should have dragged the images, not the program). Then, the computer iPhoto images were trashed and then trash was empti

  • AGENTS

    how many agents can we create in ODI? i want to run 5 interface with 5 different agents at a time can we do that?

  • How can I stop alerts when starting iPhoto?

    It's so annoying - I realize that at some point I moved or renamed some photos in my library because I find iPhoto very controlling in terms of making it difficult for me to find things easily or separate photos into the folders I create. however is