CFWINDOW referencing it's parent window.

Hello,
I have a problem with CFWINDOW and I cannot work out what is
wrong.
I have create a CFWINDOW which it's "source" is pointing to
another file. I understood that CFWINDOW is really a floating DIV,
and that the CFWINDOW should be able to access all of it's
variables in the parent window, including Session variables.
I've got a rather large application that was built in CF7,
but we have recently upgraded to CF8, and no matter what I do, I am
unable to access any variables to within CFWINDOW. Even all Session
variables in the parent window are not accessible in the CFWINDOW.
Is it something to do with the fact that use Application.cfm and
not Application.CFC? Has anyone got any idea as to what I can do to
ensure the scope of variables are accessed in my child windows?
thanks in advance,
Andy Hudson

does the file that is the source of your cfwindow belong to
same
application scope? i.e. does it have an Application.cfm/cfc
in its
folder or its partent folders other than the
Application.cfm/cfc that
the 'calling' page has?
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • Sending TABLE data in child window to parent window

    My question is as follows:
    I have a JSP with a parent window, which opens a pop-up window.
    In the pop-window there is a <TABLE> tag defined with a number
    of <TD> definitions referencing columns of data from a database table.
    There is also a 'select' button next to each row displayed.
    On pressing the 'select' button I want the data to go back to the fields
    in the parent window.
    I am successfully displaying the data in the pop-up window
    I have used the DOM model in the past and for other elements within this JSP - i.e. drop down lists, sending data back to the parent window works fine, but I'm not sure of the syntax for referencing the TABLE items within the DOM model to send back to the parent window.
    Any help on this would be very much appreciated.
    Many Thanks
    Chris

    Well I've looked and I can't find anything wrong with it, but then I wrote it. I've included it as follows:
    <%@page contentType="text/html"%>
    <html>
    <head>
    <SCRIPT language=JavaScript>
    function send_back(eventHandle)
    if (opener == null) {
    alert("\n Calling Window is no longer present. Will now close this window\n");
    window.close();
    else
    if (eventHandle == "returnRow") {
    <%-- Significant code below with the first statement referencing--%>
    form name and item name and its value --%>
    opener.document.produceTrans.studentID.value =
    document.personLOV.personID.value;
    <%-- statement below works so no that variable is correct-value --%>
    <%-- part is wrong --%>
    <%-- opener.document.produceTrans.studentID.value = "290000"; --%>
    </SCRIPT>
    <title>Person List
    </title>
    </head>
    <%-- If the focus switches to the calling window this called window is closed
    <BODY onBlur="window.close()"> --%>
    <BODY>
    <jsp:useBean id="personV" scope= "request" class="mypackage.PersonBean"/>
    <jsp:setProperty name="personV" property="personName" />
    <%-- Significant code below 1 with form name = personLOV --%>
    <form name=personLOV METHOD="POST" action="transcript-control-servlet?Action=personList">
    <TABLE >
    <tr>
    <td><input type='text' size=32 name="personName"> </td>
    <td>
    <input type="submit" name=personSearch value="Find Person">
    </td>
    </tr>
    </TABLE>
    <br>
    <div style="width:480px; height:170px; overflow: auto;">
    <TABLE border="1" cellspacing="1">
    <tr>
    <%
    Vector personVector = new Vector();
    try {
    personVector = (Vector)request.getAttribute("listPerson");
    for (Enumeration e = personVector.elements();
    e.hasMoreElements();) {
    personV = (mypackage.PersonBean)e.nextElement();
    //Significant code below 2 with persID setup
    String persID = personV.getPersonID();
    %>
    <tr>
    <%-- Significant code below 3 with hidden field set to persID --%>
    <%-- and name=personID --%>
    <td><input type="hidden" name=personID value='<%=persID%>'></td>
    </tr>
    <tr>
    <td><input type="button" name=SelectPerson value="Select"
    onClick=send_back("returnRow")> </td>
    <td><%= personV.getPersonID() %></td>
    <td><%= personV.getPersonLastName() %></td>
    <td><%= personV.getPersonFirstName() %></td>
    <td><%= personV.getPersonBirthDate() %></td>
    </tr>
    <% } }
    catch (NullPointerException ce) {
    System.out.println("No records in list ");
    %>
    It is very straightforward and I believe I am referencing the correct form name/item name in the correct manner.
    If I'm not then please tell me why not and how to fix it.
    Thanks
    Chris

  • Maximizing Report's Parent Window

    we use      set_window_property(forms_mdi_window,window_state,maximize);
    to maximize the parent window in forms. what to do to maximize REPORT's parent windoe so that it should capture whole screen.

    does the file that is the source of your cfwindow belong to
    same
    application scope? i.e. does it have an Application.cfm/cfc
    in its
    folder or its partent folders other than the
    Application.cfm/cfc that
    the 'calling' page has?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • How to populate a Value in popup based on value selected in Parent window

    Hi Gurus,
    I have done a custumization to generate a PDF report for a given DocType and Document ID.
    I have 2 fields in xxxQuoteDevPG.xml (Parent Window) called DocType and Document Number.
    Doctype is dropdown list which has 2 values i.e. Sales Quote and Manual SOW Number and Document Number is a text field with search option.
    when i select the doctype as Sales Quote and search for docnumber , i will get a popup where i have "Search By" dropdown list in this i have 2 values i.e "Quote Number" and "Customer PO".
    When i select a Sales Quote as Doctype i need to populate Quote Number as defualt in Search by dropdown list.
    and When i select Manual SOW Number from parent window i need to defualt Customer PO in popup.
    Now it is always shows Quote Number as defualt one for the doctypes.
    Actually thr is only one controller atatched to xxxQuoteDevPG.xml and popup is a OA Region.
    Can somebody help me on this issue.
    Thanks,
    MMR

    This should be a custom java class containing that method.
    Try on java or jdbc forum - Java Database Connectivity (JDBC) , Java Programming

  • Closing Report Preview window closes all parent windows

    I have a form 6.0 calling a report 6.0 with several user parameters using run_report_object in preview mode. After the finishing previewing, the user closes the report preview window. Then the preview window closes all the parent windows.
    Need help!
    1) The parameters are char, date and number types.
    2) I don't have a parameter form. I take out the high-light of the parameters on the parameter form and the parameter form title.
    3) I have several user parameters and without the parameter form i'm still able to pass the parameters from the Form.
    Thanks
    null

    report_other parameter can only take 255? characters.
    I use create parameter list and add_parameter instead.

  • Three links to open in parent window

    I have built a slider that includes three different links (one for each slide) that need to open in the parent window.  When I apply the Action using Open URL and target the parent window they still open in a new window. 
    Is there a way to configure the window.open action to target the parent window when an Edge Animate object is placed into an index file?
    Any help would be appreciated.

    1st, thank you so much for trying to help me with this.  I truly appreciate it.
    Window.location did not work either.  Left the target as parent too, still a new window.
    This is within a CMS editor that I have an iframe surrounding the index.html page holding the edge animate object for within our intranet.
    Jennie Lane
    Web Developer
    Fidelity Bank | Oklahoma Fidelity Bank
    P:  316.749.4412
    www.fidelitybank.com<http://www.fidelitybank.com/>

  • How to pass the data from a pop up window to the parent window

    Hi All,
    I have a jsp page which contains a add button, while clicking it a popup will come out(which is a another jsp page). There are some input fieldsand a submit button. Now how could I send the data from the pop up to the parent winow. Also I have to check that if the pop up is open and I click add button then another pop up must not open.
    Plz reply its urgent
    Thanks and Regards
    Rajib Sharma

    Thanks for the reply
    But it not worked
    I have a jsp page and the popup is also a jsp page the data that is passed from the popup window to the parent must be send to the server from the parent window to get a data from the data base as search result. Its of no use to get it as js data
    Thanks and regards
    Rajib Sharma

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to re-show a dialog with the parent window

    I am writing an Menu drivern application:
    -- A JCMDIPane is put in the JFrame.
    -- Multiple JCMDIFrames are added to the JCMDIPane via menu selecting events
    -- Each JCMDIFrame (call it parent) may pop up a Dialog window (child) (Thes dialogs are modal)
    Here is my problem:
    When you switch away from this Java application to other applications (reading mauls, editing word documents, surfing web), of course, the Java program is hiding behind these applications and only left a Icon on your taskbar. The problem is that when switch back from other application to this Java program, However, it only shows the parent window (the JCMDIFrame ) and the child (the dialog) is behind. You have to using Alt_Tab to get the focus on the child and show it.
    My question is:
    Is there any way can we show the Dialog window is on the parent window (as it originally shown)?
    I have tried to overwriting the paint method of JCMDIFrame :
    public void paint(Graphics g)
    super.paint(g);
    if(child != null && child.isShowing())
    child.setVisible(true);
    This works on other applications but not on the Internet Explore (It always show the dialog).
    Anybody can give me a clue?
    Thanks!

    When you pop up a dialog, if you use the constructor:
    Dialog(Frame owner, boolean modal);
    and pass it an instance of the parent frame (and set "modal" to "true"), then it is my understanding that it should always appear in front of the parent - are you sure this is what you are doing?
    Double check by doing myDialog.getOwner() and make sure it's not null.

  • How to set focus in the parent window after a JOptionPane pop up ?

    I am not able to set the focus back to a JTextField in the parent window after poping up a JOptionpane.showMessageDialog(). I tried requestfocus(),requestFocusInWindow etc......but not working. The code is given below.
    if ((encryptor.encrypt(password)).equals(configuredPasswd)) {
                        validPassword = true;
                   } else {
                        JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
                        saveUI.getPasswdField().setText("");
    saveUI.getPasswdField().requestFocus();
    Sometimes the focus is coming to the JTextField.Sometimes it appears for a moment and then dissappears.Please give a solution

    see if this makes a difference
    if((encryptor.encrypt(password)).equals(configuredPasswd))
      validPassword = true;
    else
      JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
      ActionListener al = new ActionListener(){
        public void actionPerformed(ActionEvent ae){
          saveUI.getPasswdField().setText("");
          saveUI.getPasswdField().requestFocusInWindow();}};
      javax.swing.Timer timer = new javax.swing.Timer(100,al);
      timer.setRepeats(false);
      timer.start();
    }

  • How do I populate a popup window with data from the parent window

    I am brand new to JSF so please help me. I have a JSF page where users enter some search criteria and it displays the results in a matrix table. I need to have a PRINT button or link on this page that pops up a new window that displays the same data but in a printer-friendly format.
    The parent page is already created and works fine. Now, what is the best way to populate the same data in the popup? The data is stored in a hashmap and retrived by a managed bean with session scope. Below is the XHTML code for displaying the table in the parent page.
    <tbody>
                             <c:forEach items="#{inventoryManagedBean.inventoryColors}" var="row">
                                  <tr id="matrixColor">
                                       <c:forEach items="#{inventoryManagedBean.sizeList}" var="column" varStatus="cellStatus">
                                            <c:if test="#{cellStatus.index == 0}">
                                                 <th width="70px"><h:graphicImage value="../graphics/styles/#{row.color}.jpg"
                                                      alt="#{row.color}" width="70" height="40"></h:graphicImage></th>
                                                 <th width="100px"><h:outputText value="#{row.colorDescription}" />
                                                 <h:outputText value="#{row.color}" /></th>
                                            </c:if>
                                            <td width="70px"><c:if
                                                 test="#{inventoryManagedBean.inventoryMap[row.color][column.size] != null}">
                                                 <c:if test="#{inventoryManagedBean.inventoryMap[row.color][column.size].label != '-1'}">
                                                      <span class="matrixText"><h:outputText
                                                           value="#{inventoryManagedBean.inventoryMap[row.color][column.size].label}"
                                                           title="#{inventoryManagedBean.inventoryMap[row.color][column.size].title}" /> </span>
                                                      <t:htmlTag value="br" rendered="#{userManageBean.user.loggedIn}" />
                                                      <a4j:region renderRegionOnly="false">
                                                           <h:inputText
                                                                value="#{inventoryManagedBean.inventoryMap[row.color][column.size].quantityOrdered}"
                                                                rendered="#{userManageBean.user.loggedIn}" maxlength="6" size="6">
                                                           </h:inputText>
                                                      </a4j:region>
                                                 </c:if>
                                                 <h:outputText value="Call"
                                                      rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size].label == '-1'}" />
                                            </c:if> <h:outputText value="N/A"
                                                 rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size] == null}" /></td>
                                       </c:forEach>
                                  </tr>
                             </c:forEach>

    call javascript window.open("pagename"); & add some printer button there,
    and put rendered attribute to button & in backing bean generate boolean getter setter for variable use same variable in jsp printer button in rendered attribute, in bean constructor pass some parameter throuh jsp page,
    if parameter is match then it rendered attribute to true for button else not,
    it means that in parent window you can not see printer button, but in same window in popup you will see printer button,
    good luck
    <h:commandButton rendered="#{bean.renderedButton}"/>
    bean
    private boolean renderedButton= false;(generate getter setter)
    also pass parameter from UI to bean constructor

  • CSV file replacing the parent window

    Joined: Dec 16, 2011
    Posts: 5
    posted    Friday, December 16, 2011 3:35:15 PM
    0
    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    You are probably better off asking in the developer forums : https://devforums.apple.com/index.jspa

  • CSV file downloading replaces the parent window

    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option. So i'm unable to get the parent window again.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    Hi,
    For pdf file if we choose adhoc or by giving the proper name, we can able to get the options like OPEN or SAVE. This will work fine for pdf.
    But here im trying with csv file /html file, so the file is replacing the existing screen itself when i click the csv link. In my web application, i cannot get the parent window by using back button once i get the csv file instead page gets expired.
    So my best suggestion is should we able to open the csv file in new Tab of safari instead of replacing the parent window where im clicking to open the csv file.
    Suggestions pls.

Maybe you are looking for

  • Webcam NX and Windows Vista x64

    To whom who can solve this problem,?I have now been testet the Vista x86 and Vista x64. In the x64 it doesn't install my Creative Webcam NX camera. It just finds it as an "unknown device", but in the x86 version it finds it during install and it work

  • HD7850 2GDDR5 OC issue with Gigabyte B75-D3V MB

    Hi, I have just put together the following PC and am having issue getting the Graphics card to work in the main PCIEx16 slot, it simply does give any output when in that slot.  The slot is PCIE3.0 and so is this card, but the card doesn't work in thi

  • NVL in select query

    I have query as below select a.id, (select dep from table2 where table2.name=table1.name ) from table1 The second value is null as table2.name=table1.name has no value for table1 if i use NVL as below select a.id, (select NVL(dep,0) from table2 where

  • More than one item table in HIERSEQ_LIST_DISPLAY

    Hi , Is it possible to have moe than one item table in HIERSEQ_LIST_DISPLAY. if we have more than one item table with different structures then what is the best way to disply them. Thanks and Regards,

  • Reporting table in bw

    Hi experts, Which table in BW 3.5 can give me information about a report like InfoProvider, creation date, creator. Thanks a lot.