Popup Window issue

Hi all,
      I need to show a popup when feature dated records exists. For that on the Save action of the user I am checking the feature dated records and showing a popup.
ISSUE:
I am calling this popup in onSAVE action.  Based on the user ok or cancel I need to perform some code in the same action. But the issue is the code below the popup is being run even before the popup is displayed and after user clicks OK or Cancel the cursor does not comeback to onSave action at all.
How to do in this scenario?
Code:
lo_window         = lo_window_manager->create_window(
                   window_name            = 'ZSDRPOPUP'
                  title                  = 'Feature Dated Records Exists.'
                 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_OKCANCEL
                   message_type           = if_wd_window=>co_msg_type_none
                   default_button         = if_wd_window=>co_button_ok
lo_window->subscribe_to_button_event(
button = if_wd_window=>CO_BUTTON_OK
button_text = 'Overwrite'
action_name = 'SUBMIT'
action_view =   lo_view_controller ).
lo_window->subscribe_to_button_event(
button = if_wd_window=>CO_BUTTON_CANCEL
button_text = 'Cancel'
action_name = 'CANCEL'
action_view =  lo_view_controller ).
lo_window->open( ).

Popups are not synchronous in Web Dynpro. Therefore it is normal for processing to continue (and the phase model to complete) before the popup is even displayed.  That is why you register events for the buttons that are pressed within the popup.  It is in the event handlers of these events that you will continue your processing.  You probably need to be more modular with your code so that the actual save logic can be called from within the button OK event handler of the popup as well.

Similar Messages

  • SAP Portal - POPUP window issue

    Hi All,
    I'm just new in SAP Portal and I want to ask an assistance regarding the issue our team is currently handling.
    When user open a workitem in Engineer's Desktop (under Assembly Manager), a new popup window appears. When the user tries to open another workitem without closing the first one, the first popup window closes which should not be the case. If the user opens 2 workitem, there should be 2 popup window. There are no current changes done on Portal except the EHP upgrade.
    Can you please help me on this? ANy idea is appreciated.
    Thanks,
    Arlene

    Hi Padman,
    Pls. install JVM on you local machine..
    Regards
    Pramod

  • Blank popup window issue

    Hi,
    In my application, I have an ALV in which one of the columns is a link to another ALV in a popup window. If the link is clicked for the first time, the window pops up with all the values as expected. But, if the link is clicked for the second time (any link in the first ALV), I get a blank window as a popup. This time the popup contains all the UI elements except for the view container UI element (ALV). I also created other simple test programs but still face the same issue.
    This is happening only in the BW system. The same is not the case in any other development system (confirmed by developing sample programs).
    Please help me out to resolve the issue.
    Thanks,
    Gokul

    I am not sure if the below link can help you, but see if it gives any input to you.
    Icon in popup blank

  • Popup Window issue with PureMVC

    Hi
    I am trying to have a popup screen appear using PureMVC. The problem I am having is that the popup is appearing, however the component I want to be contained withint he popup window is blank.
    I am not sure why this is. I was using this as a reference
    http://cookbooks.adobe.com/post_Creating_a_Popup_with_Flex_4_and_PureMVC-17596.html
    Where in my component to go inside the titlewindow I create a panel, give it an id and within that panel then is all the visual elements I want.
    Eg:
    private function showProjectWizard():void {
    var theApp:ApplicationManager;
    titleWindow = TitleWindow.show(projWizard.content, "Title Window22", TitleWindow.OK_CANCEL_BUTTONS, true, null,closeHandler)
    PopUpManager.centerPopUp(projWizard);
    This is the ProjectWizard component
    <?xml version="1.0" encoding="utf-8"?>
    <s:HBox  xmlns:sas="http://www.sas.com/flex/mxml" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark" height="400" width="400">
              <s:Panel id="content" height="100%" width="100%">
                                  <s:Label id="name_id" x="10" y="0" text="Name:"/>
                                  <s:Label id="location_id" x="10" y="20" text="Location"/>
                                  <s:Label x="10" y="56" />
                                  <s:Label id="source_id" x="10" y="88" text="Document source:"/>
                                  <s:TextInput x="70" y="0"/>
                                  <s:TextInput x="70" y="30"/>
                                  <s:VScrollBar x="284" y="56"/>
                                  <mx:HRule x="98" y="127"/>
              </sas:Panel>
    </s:HBox>
    Any thoughts on why a small titlewindow with just the two buttons but nothing in the middle is appearing?

    Any reason you're opening a <s:Panel> but are closing it with a </sas:Panel> in a different namespace?

  • base target=_self issue in modal popup window.

    Hi,
    I have implemented a modal popup window as described in:
    TIP: Building Modal Popup Windows
    I also created a Search button (per step 8 "polishing")
    The html header of the page attributes of the LOV window contains (step 3):
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <base target=_self>
    Still for some reason when I hit Search, a new window opens.
    What am I missing here?
    Toon

    Andy,
    I added the quotes: but no difference in behaviour.
    However I did find something:
    On the search button I had erroneously defined a url-redirect going back to the same page.
    And I also had a conditional (request=search) branch going back to the same page.
    I deleted the url redirect on the search button, and it works fine now: the branch takes me back to the same window (without opening a new one).
    On further testing I found another issue concerning the pagination (it is of type: row ranges in select list with pagination).
    If I press next and previous all works well. But if I select a range from the select list it opens a new window...
    Any ideas here?
    Thanks,
    Toon

  • Create record issue in the JHS LOV popup window after delete record

    Jdeveloper : Studio Edition Version 11.1.2.2.0
    Jheadstart : 11.1.2.1.28
    hi
    i sent a testcase to [email protected]
    in JHS lov popup window,when i delete a record and then, i want to create a new record,it is not work
    but when i click in one of the fields and then click plus icon, it work correctly

    OK, this happens because of the code that fixed the delete issue that I sent you before. This code needs to be changed slightly, the following lines:
    Row row = selectedRowData.getRow();
    if (!isMultiSelect())
    // make this row current, so row delete will work in LOV page
    selectedRowData.getIteratorBinding().getRowSetIterator().getRowSet().setCurrentRow(row);
    selectedRows.add(new RowData(row));
    should be enclosed with a check whether there is a selected row:
    if (selectedRowData != null)
    Row row = selectedRowData.getRow();
    if (!isMultiSelect())
    // make this row current, so row delete will work in LOV page
    selectedRowData.getIteratorBinding().getRowSetIterator().getRowSet().setCurrentRow(row);
    selectedRows.add(new RowData(row));
    Steven Davelaar,
    JHeadstart team.

  • Issue with records displaying in the advanced table in popup window oaf

    Dear All,
    I have a requirement as below.
    I have a popup search page in that i am displaying the searched data in advanced table, but the issue is all the rows not displaying in the popup window because of poup window size, even i am not able to view the "Next" button in the table to proceed next records, can someone suggest me how to display the "NEXT" button in the table so the i can view all the records in the table.
    or is it feasible to implement "SCROLLBAR" in the advanced table in popup window so that i can scroll vertically and horizontally to view records.
    Thanks

    Actually i have made a mistake, in my advanced table table property palllet i have mentioned maximum rows fetched 20 but in my page i was displaying 10 records only so thats why the navigation button not displaying,
    Thnaks

  • Issue with displaying ALV in a popup window

    Hi Experts,
    I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.
    If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.
    Has anyone else come across this issue before. All your suggestions, responses are welcome.
    Thanks,
    Vivek

    HI,
    My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.
    I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.
    types: begin of  ty_belnr,
             belnr type vbkpf-belnr,
           end of  ty_belnr.
    data: lt_belnr type standard table of ty_belnr,
          lo_node type ref to if_wd_context_node,
          lo_element type ref to if_wd_context_element.
    select belnr
      from vbkpf
      into table lt_belnr
    where ausbk = 'UC'
       and bukrs = 'UC'
       and gjahr = '2011'
       and usnam = sy-uname.
    if sy-subrc eq 0.
       lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
       lo_node->bind_elements( new_items = lt_belnr[] ).
    endif.
    Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM

  • XSLT Issue to open URL in new tab and PopUp Window through one custom style

    I have SharePoint Online Custom List that contains two columns
    Name: Single Line of Text
    URL: Hyperlink or pictures
    Using XSLT I have shown Name columns value on my home page by using below custom style in
    Itemstyle.xsl file.
    Custom style to show Link in PopUp window   itemstyle.xsl
    <xsl:template name="OpenApplicationPagePopUp" match="Row[@Style='OpenApplicationPagePopUp']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <div class="item link-item">
    <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
    <a href="{$SafeLinkUrl}" onclick="ShowPopupDialog(GetGotoLinkUrl(this));return false;">
    <xsl:if test="$ItemsHaveStreams = 'True'">
    <xsl:attribute name="onclick">
    <xsl:value-of select="@OnClickForWebRendering"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
    <xsl:attribute name="onclick">
    <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
    </xsl:attribute>
    </xsl:if>     
    <xsl:value-of select="$DisplayTitle"/>
    </a>
    </div>
    </xsl:template>
    My Requirement to show only Suggestion Box in Popup window Other Links Should be open in new Tab So please suggest me what can change in above xslt...
    Thanks
    Deepak Chauhan
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

    Hi,
    In SharePoint 2013, we can use JSLink to achieve it.
    1. Save the following code as a js file (URLPopup.js) and upload it into the
    SiteAssets Document Library.
    // List View – Field open modal dialog Sample
    (function () {
    // Create object that have the context information about the field that we want to change it output render
    var linkFiledContext = {};
    linkFiledContext.Templates = {};
    linkFiledContext.Templates.Fields = {
    //Apply the new rendering for URL field on List View
    // "URL" is the column name.
    "URL": { "View": URLFiledTemplate }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(linkFiledContext);
    // This function provides the rendering logic for list view
    function URLFiledTemplate(ctx) {
    var itemTitle=ctx.CurrentItem.Title;
    var urlLink=ctx.CurrentItem.URL;
    var urlDesc=ctx.CurrentItem['URL.desc'];
    if(urlLink!=null&&urlLink!=""){
    if(itemTitle=="Suggestion Box"){
    return "<a href='#' onclick=\"openModalDialog('"+urlLink+"')\">"+urlDesc+"</a>";
    }else{
    return "<a href='"+urlLink+"' target='_blank'>"+urlDesc+"</a>";
    }else{
    return "";
    function openModalDialog(url)
    var options = {
    title: "Suggestion Box",
    autoSize: true,
    url: url
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
    2.Edit the list view page.
    3.Edit the list web part. Go to Miscellaneous -> JS Link.
    4.Add the following URL into the JS Link textbox.
     ~site/SiteAssets/URLPopup.js
    5.Click "OK" and save the page.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Modal Popup Window close issue

    Hi,
    i have a master detail form
    i added a link field on detail form to open a form in popup modal mode
    i putted on Link Attributes onClick="new Ext.ux.PopupWindow({url: this.href, height: 450}).show(); return false;"
    due Modal Popup Window example by Mark Lancaster
    ([http://oracleinsights.blogspot.com/2009/09/apex-modal-windows-are-snap-using-extjs.html])
    I can't close popup window and return on calling page
    Any help?
    Thanks in advance
    Lukx
    so --> win xp
    rdbms --> 10.2.0.4
    apex --> 4.0.2.00.07

    Hi lukx
    You will find additional information in the comments on my blog that will solve your problem.
    Also, my book contains an even better solution for this in chapter 10, page 334.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • Window popup close issue in jsf

    I am having add/edit functionlaity in window popup and when i close the window by calling javascript:window.close.
    The following exception comes at server. Kindly tell me how i can avoid this exception at server.
    <2005-08-25 12:20:09.708> ERROR [Web-Worker-Thread : 5] taglib.core.ViewTag - Error writing endDocum
    ent
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)

    You need to submit the form from the parent window, not from the popup window. When the window will be closed, all processing requests will be stopped immediately. Hence the "connection reset by peer" error message (which roughly means as "the other side has aborted the connection, we can't send a response anymore").

  • SSO UIDPW not working for external Popup Window but works with SAPLOGONTICK

    Dear Experts,
    I have an issue with SSO user mapping (UIDPW), but the same scenario is working with SAPLOGONTICKET.
    Some list gets displayed in the Web Dynpro ABAP iView which has the hyperlinks where on click on the hyper link it opens a external popup window (another Web Dynpro Application) and display the summary some data.
    This scenario works when I set the logon method to SAPLOGONTICKET, but when I set it as UIDPW it won't work when a new window opens on click on the hyperlink from Web Dynpro iView as stated above. It asks to login to R/3 system.
    Can anyone please let me know what could be the reason it fails in External Popup window scenario when logon method as UIDPW.
    Thanks
    Murthy

    Hi Murthy,
    You can use application integrator iView to integrate your ABAP application into the portal and you'll be able to pass the variables <MappedUser>, <MappedPassword>, etc. assuming you know about the security risks in passing mapped info.
    http://help.sap.com/erp2005_ehp_05/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm
    Still, your ABAPers might need to handle the passed in variables in the first ABAP application and pass them onto the second one.  Again, without knowing how you navigate between the 2 apps and other details about your system landscape, versions, etc. this remains as a guess.  If you search SDN, you'll find many different solutions then you can choose one which is most suitable for your situation.
    Regards,
    Dao

  • Opening a form in a new window issue

    Hi..
    I have this requirement where I have this page(say XYZPG.xml) which contains a table which is auto populated based on a particular setWhereClause and all this happens in the processRequest as the page loads.
    This page opens on clicking a button in a previous page from where all the parameters for the setWhereClause is sent using fireAction.
    Each Row in the results table in XYZPG has a "detail" button which opens another page in a new window using _blank in the Target Frame.
    The issue is that when Iam clicking the "detail" button,the new form opens in the new window and after closing the form that opened in the new window when I start to perform any action in XYZPG a null pointer is encountered in the processRequest while trying to fetch the setWhereClause parameters.
    Please help in this issue.Its urgent.
    Thanks

    That's because when you close the child window, control returns back to parent form's processRequest. Which version of EBS you are working on? OAF has in-built popup windows feature supported on latest EBS versions which is very useful on many occasions as it has good features like popup closing automatically when a submit button is clicked etc. Check JDev user guide and see if you can use popup windows for your project. If not, you have to capture the event in processRequest and perform required actions again.
    Thanks
    Shree

  • I just got a new computer with Win 8.1 and everytime I open firefox I get dozens of popup windows.

    I turned this popup option off in the options. Why is this happening? They are all over the screen, some little popup windows and other are full size Firefox. It's driving me nuts. It doesn't happen when I use Chrome. But I don't like Chrome. I'm on Firefox 31.0

    I suspect a bad add-on. Since add-ons often are installed externally to Firefox, I suggest starting here:
    Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    Then, in Firefox, open the '''Add-ons page''' using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Finally, you can "mop up" remaining issues with the scanning/cleaning tools suggested in this support article: [[Troubleshoot Firefox issues caused by malware]].
    Does that clear it up?

  • Windows 7 on MacBook Pro Retina late 2013. Showing popup window as "Windows detected a hard disk problem"

    I have installed Windows 7 64 bit version in my MacBook Pro Retina(13") late 2013 model . It was working fine from last 8 months but recently popup window showing as "Windows detected a hard disk problem" once login. Please check the following image.
    I have contacted Apple Support team. They have tested the hard disk while booting from Mac OS and all the reports showing as hard disk is fine. Then I thought might be it was some virus and removed the Bootcamp partition and re-installed Windows 7 Operating System. But once updated Windows 7 with latest updates. This message showing again.
    Would you please help me out to fix this issue. Anybody faced similar issue?

    No I think that all drive are really on failure
    I've boot with an ubuntu livecd and smartmontools see also the failure.
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x001a   200   200   000    Old_age   Always       -       0
      5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
      9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1872
    12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       762
    169 Unknown_Attribute       0x0013   253   253   010    Pre-fail  Always       -       4003597393408
    173 Unknown_Attribute       0x0036   100   100   100    Old_age   Always   FAILING_NOW 12124890467160
    174 Unknown_Attribute       0x0022   099   099   000    Old_age   Always       -       7469954
    175 Program_Fail_Count_Chip 0x0022   099   099   000    Old_age   Always       -       4989854
    192 Power-Off_Retract_Count 0x0012   099   099   000    Old_age   Always       -       31
    194 Temperature_Celsius     0x0022   064   064   000    Old_age   Always       -       36 (Min/Max 11/75)
    197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
    199 UDMA_CRC_Error_Count    0x001a   200   199   000    Old_age   Always       -       0
    240 Unknown_SSD_Attribute   0x0022   100   100   000    Old_age   Always       -       0
    When I use the Mac disk tools from the startup menu, it see also the problem.
    Now the big question is : Why I've this type of issue with 2 MBA and 1 Macbook pro 15".
    Their configurations are the same : windows 7 with truecrypt.
    Maybe Windows drastically reduces the lifetime of the Apple SSD drive.
    The 3 Mac are used for less than 6 month !!!!

Maybe you are looking for