11g, reusing a popup window

Hello,
I have a "search customer" dialog (and some others) which will be used throughout the application, and I would like to encapsulate it so other screens can easily use it. I am not really sure how should I do this:
- Use a page fragment: since it uses the binding container of the "receiving" page, I need to define an appropriately-named binding in every page that uses the page fragment. Also, I still don't know how to modify the action listener of the dialog so it calls the appropriate backing bean on each "receiving" page.
- Use a declarative component: I'm not sure if I can define bindings on a declarative component. There is also the annoyance of creating a Library each time I need to change one of the modal dialogs.
- Use an ADF Task Flow and a region: I'm not really sure how it would work with a popup dialog. Should the region be the af:dialog, the af:popup, or the content inside the af:dialog? How can I link the bounded task flow with the original screen after the user has selected an option?
Thanks for your help!!!
Juan Manuel
ps: in case it's important, here is the code I execute when I close the dialog:
public void dialogButtonClicked(DialogEvent dialogEvent) {
if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok) {
DCIteratorBinding searchContractsIt = ADFUtils.findIterator("SearchAccountContractIterator");
SearchAccountContractRow contract = (SearchAccountContractRow)searchContractsIt.getCurrentRow();
if (contract == null) return;
DCIteratorBinding designRequestIt = ADFUtils.findIterator("DesignRequestsIterator");
DesignRequestVORow request = (DesignRequestVORow)designRequestIt.getCurrentRow();
request.setDesignRequestContractFK(new Number(contract.getId().getValue()));
}

Hi,
the winning solution is
+"Use a declarative component"+
You don't need a binding defined for the dialog. Just define an attribute on the declarative component that takes the iterator as the value. from within the component, to access the iterator you use
private DCIteratorBinding getIteratorBinding(){  
  FacesContext fctx = FacesContext.getCurrentInstance();
  ELContext elctx  = fc.getELContext();
  Application app = fctx.getApplication();
  ExpressionFactory elFactory = app.getExpressionFactory();
  ValueExpression valueExpr =
    elFactory.createValueExpression(elctx,"#{component}",Object.class);
  RichDeclarativeComponent _this = (RichDeclarativeComponent)
    valueExpr.getValue(elctx);
  //Access the Iterator attribute
  return (DCIteratorBinding)_this.getAttributes().get("Iterator");
}Note that in this example, the attribute name is "iterator"
Frank

Similar Messages

  • Popup window

    Why is it that  I can't reuse a popup window whenever I open a portal window from javascript as follows?
    < script >
    var popWin = window.open("http://copdev01.lds.com:50000/irj", "PopupWindow");
    popWin.focus();
    < / script>
    If I include the "irj" in the path, it opens up a new popup window everytime I invoke this code. If I exclude the "irj", a new instance of the window is opened everytime.  
    Vijay

    Hi,
    I'm assuming your button Edit Entry is part of Grid (within ItemTemplate).
    So write method, where for each row you write javascript onclick event on button.
    foreach (GridViewRow row in grid.Rows)
    btnAdd.Attributes.Add("onClick","return eventName();)");
    That's it, write eventName() function which will open window.
     function eventName() {
            var link = <urltowindow>;
            var options = {
                title: 'Title',
                url: link,
                allowMaximize: false,
                width: 600
            SP.UI.ModalDialog.showModalDialog(options);
            return false;
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • To Open 11g Forms output on a seperate popup window

    Hi,
    Anybody help me, how to Open 11g forms output on a seperate popup window. Now it is comming in browser itself.
    regards
    Ahamed Rafeeque CH

    This is controlled in the Forms Services configuration. You will need to modify the "separateFrame" configuration setting using the WebLogic Server interface. You could also modify the formsweb.cfg using a standard text editor, but it is not recommended. The default value for separateFrame is FALSE. By setting the value to TRUE it instructs Forms Services to use a seperate browser window for the Java Applet.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Hot to copy text from a Popup Windows in SAP CRM 7.0?

    Hi guys,
    we want to copy text from a POPUP Windows but you cannot highlighttext there.
    We've tried with "Popup to Decide List" and "Popup for Reuse components".
    Do you know if is possible to copy text from a POP-UP Windows in CRM WUI 7.0?
    We also have tried to export text to the clipboard using:
    CALL METHOD cl_gui_frontend_services=>clipboard_export
      IMPORTING
         data = lt_tab
      CHANGING
         rc = vl_rc
      EXCEPTIONS
         cntl_error = 1
         error_no_gui = 2
         not_supported_by_gui = 3
         no_authority = 4
      OTHERS = 5.
    It doesnu2019t work neither. It gets the exception CNTL_ERROR.
    Do you know any other Function/Class for this purpose?
    Thanks in advance.
    Fernando.-

    Solved.
    I've used a Text Area.

  • BUG: iPad displays 1cm border around content in task flow popup window

    I have tried this out on JDeveloper 11.1.1.6.0, 11.1.2.1.0 and 11.1.2.2.0 and each one seems to have the same problem. When displaying a taskflow in-line popup windows on an iPad (iOS 4.3.5 and iOS 5.1) a ~1cm border is displayed on the left, bottom and top of the window's content, with some of the content (also about 1cm) on the right being cut-off.
    I have also tried my app out on a Android Samsung Galaxy Tab (built-in browser), Android Samsung S1 (built-in) and on my Windows 7 PC in Safari and Firefox. None of these devices/browsers have this problem.
    To replicate this problem the following steps can be followed.
    1) Create a normal fusion web application.
    2) Add a wild card control flow rule to the default unbounded task flow.
    3) Add a new bounded task flow to the unbounded task flow.
    4) Set the bounded task flow 'Run as Dialog' to 'true' and 'Display type' to 'inline popup'.
    5) Link the wild card control flow to the bounded task flow.
    6) Add a single jsf page to the bounded task flow.
    7) Add a panel box to the jsf page (or any other content for that matter)
    8) Create a test page and add a button to it. Set up the button's action properties such that it opens the bounded task flow as a window ('UseWindow' - 'true'; 'WindowEmbedStyle' - 'window'; 'WindowModalityType' - 'modeless' and set width and height).
    Are any workarounds for this? Is there currently a available patch to fix this problem?

    Hi,
    Are any workarounds for this? Is there currently a available patch to fix this problem?
    if nobody dares reproducing this and filing it as a bug then a fix can take a while. I'll put it on a list of my follow ups, but this is not a high priority list. So if you can I appreciate if you can file the bug and provide a testcase. Note that 11.1.2 (11g R2) is not yet optimized for tablet PCs. So JDeveloper 11g R1 (11.1.1.6) is the build that should be used as a reference for filing the bug
    Frank

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

  • IPad displays 40px padding around content in task flow popup window

    I am using JDeveloper 11.1.1.7.0.
    When I try to run taskflow as dialog (inline popup window) IPad renders 40px padding around the window. So the content at right side is cut-off by that 40px.
    In other devices (Desktop browsers, Android browsers, ...) it is rendering as expected.
    In IPad it generating html as follows:
    <div id="j_id36" class="xpm " style="position:absolute;width:auto;height:auto;top:0px;left:0px;bottom:0px;right:0px;overflow:auto;padding:40px;">
         <iframe id="j_id36::f" title="Content" onload="AdfDhtmlInlineFramePeer.__iframeLoadHandler(event)" frameborder="0" style="position: absolute; width: 100%; height: 100%;" _adfloaded="1" src="<context-path>?_adf.ctrl-state=xeism3nhm_46&amp;_rtrnId=1375337713633&amp;__ADFvDlg__=true">
             <"content goes here......">
         </iframe>
    </div>
    In the above html, style colored with red are the additional properties added while rendering in IPad. In other devices these properties are not generating.
    I found the below thread while searching, but it is not answered.
    https://forums.oracle.com/thread/2407520
    Is there any workaround for this ? or is it tracking as a bug ?
    Thanks,
    Gopal.

    Hi,
    Are any workarounds for this? Is there currently a available patch to fix this problem?
    if nobody dares reproducing this and filing it as a bug then a fix can take a while. I'll put it on a list of my follow ups, but this is not a high priority list. So if you can I appreciate if you can file the bug and provide a testcase. Note that 11.1.2 (11g R2) is not yet optimized for tablet PCs. So JDeveloper 11g R1 (11.1.1.6) is the build that should be used as a reference for filing the bug
    Frank

  • Add a Scrollbar to a popup window

    Hello,
    I have a calendar in an application that lists appointments.  The appointment is a link that opens a popup windows that gives the appointment details.  The problem is the popup window does not have a scrollbar and for some users all of the text is not visible.  Is there an easy way to add a vertical scrollbar to a popup window in APEX?
    I am using APEX 4.1 on an Oracle 11g database.
    Thanks,
    Bob

    The overflow:scroll; is a css rule.  The way your page is written, if you simply put this rule in here
    body,td,th {
        font-family: Comic Sans MS, cursive;
        font-weight: bold;
        font-size: 14px;
        color: #5A1E02;
    I think it will cause you problems.
    I would say create a class, like so
    .scroll     {
         overflow:hidden;
    You would put this in your css.
    Then in the html, I would add the class the the <td> that you want to scroll.  So change this
    <td height="422"><img src="http://www.bearground.com/exads/alicanad/images/programagrizzly.jpg" width="599" height="637" /></td>
    to this
    <td class="scroll"><img src="http://www.bearground.com/exads/alicanad/images/programagrizzly.jpg" width="599" height="637" /></td>
    See what that does for you.
    Gary

  • ReturnListener invocation when closing popup window with (X) Button

    When I use a bounded task flow in an inline-pop, when the user clicks on the upper right (X) button of the popup window, the ReturnListener
    is not invoked which needs to be called in my use case because I need to refresh the caller’s table displayed in the calling screen. Do you know if there is a way to invoke the ReturnListener method to be invoked in case of closing the dialog via (X) button on the top right? Or how to refresh(addPartialTrigger) the caller’s table in that case.
    This behavior is described in Andrejus following
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    Thanks for your feedback.
    Best Regards,
    JP

    Hi,
    We created our own region in popup system partly for that reason. You have to add a popupClosed client listener and send a custom event to the server to in turn call the returnListener. Sadly, it's really not simple to implement, so I cannot come up with a good solution for you. :(
    Regards,
    ~ Simon

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please help me.

    Hi - Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please suggest how to over come this problem.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Did you make sure that your security software isn't blocking the pop-ups?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • 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

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • How to disable parent window while popup window is coming

    Hi,
    I am working on Oracle Applications 11i.
    I am able to get the popup window using the Java script in the controller.
    Please see the below code for the reference.
    String pubOrderId = pageContext.getParameter("orderId");
    StringBuffer l_buffer = new StringBuffer();
    StringBuffer l_buffer1 = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG");
    l_buffer1.append("&retainAM=Y");
    l_buffer1.append("&pubOrderId="+pubOrderId);
    String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    But here the problem is, even though popup window is there, i am able to do the actions on the parent page.
    So how to disable the parent page, while getting the popup window.
    Thanks in advance.
    Thanks
    Naga

    Hi,
    You can use javaScript for disabling parent window as well.
    Refer below link for the same:
    http://www.codeproject.com/Questions/393481/Parent-window-not-disabling-when-pop-up-appears-vi
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for