Parent child window functionality using CFM

In .cfm page I am trying to implement the following
functionality
I got a parent window contains a button.
On button click a child window should get open.
This child Window should get embed in that parent window
(like MDI application)
1)i.e While minimizing the parent window this child window
should also get minimized
2)While closing the parent window this child window should
also get closed
3) We should also be able to close the child window alone.
4) If you double click on the title bar of the child window
it should get maximized
5) Again double click on the title bar of the child window it
should get minimized.
I tried with <embed> tag but it seems its for audio ,
flash kind files.
If we can use <embed> tag means whats should be the
value of the "Type" attribute.
waiting for your valuable information

Window handlers and controls are generally a function of the
browser and not really manipulatable using ColdFusion, as it runs
on server-side only, not client-side. JavaScript would be more the
thing to play with in this regard, although I don't think there is
an "onClose" event handler.
HOWEVER!
All browsers have a security feature that prevents pop-up
child windows from "hijacking" their parents window behaviors,
including resizing, moving, changing the toolbars, closing, etc.
This security feature cannot be bypassed, and is an integral
hard-coded aspect of all modern browsers. I suspect that what you
are looking to do may be impossible due to this one fact, unless
someone knows a bypass.

Similar Messages

  • ADF: Parent Child Window Popup

    Hi All,
    I am having a requirement in which, I am trying to create Parent Child window in ADF. I will give some information in the Parent form and there will be a button which will popup a child window and I will enter some information in a child window and submit, it should come to parent page without displaying the details entered in the child window and once I click the submit button in the Parent window, both the Parent and Child window Detaiils should get saved to the database. I am trying to use ADF or ADF BC.
    Please provide me the steps that need to be followed.
    Thanks.

    This is a common use case. You question on the other hand shows that you not really tried the figure our the answers yourself.
    It's too much you ask us to do your work.
    First you should think which technology (swing or faces) you want to use. Then you should read up some of the documents (i.e. the Fusion Order Demo, or any other sample or cue card) to get some knowledge of the framework.
    I you have a problem then, come back and mention the jdev Version you are using.
    Timo

  • Hiding the parent applet window when using separteFrame=true

    Using Oracle Forms 10.1.2.0.1 on UNIX Server (AIX) - IE version 6 - JInitiator 1.3.1.22
    Hi. I've read some posts about using "HTMLbodyAttrs=onLoad='javascript:self.moveTo(1601,1201)'' in the formsweb.cfg file in order to hide the parent browser window, but for some reason this seems to be ignored after I added it to mine. The parent window remains open - no change seems to occur.
    Do I need to bounce the OAS in order for this functionality to take affect? Or is there more that needs to be done in order to hide the parent window? Any help would be greatly appreciated. Thanks in advance.
    Below is a portion of my formsweb.cfg file containing this code:
    # HTML page title
    pageTitle=Oracle Application Server Forms Services
    # HTML attributes for the BODY tag
    # HTMLbodyAttrs=
    # immediately hide the applet parent window
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(1601,1201)'
    # HTML to add before the form
    # HTMLbeforeForm=
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    ...

    Infact,
    Add javascript to the Oracle Forms basejinit.htm file
    which permanently minimizes the parent browser
    window.
    Javascript can also be coded to provide a warning
    to the user should an attempt be made to do a right
    mouse click - close of the minimized browser
    displayed in the MS Windows Taskbar.
    I know very little javascripting.... Can you please give me a sample code....Thanks.

  • Reading child window contents using Javascript

    Hi Friends,
    is it possibel to read the contents of the child window opened from a javascript.for example am opening a window using Window.open function in javascript, after opening the window can i read the contents ?If so how can anyone help in this.
    Thanks
    Vishy

    Am sorry , but there are courteous ways to say this.
    Anywya never mind .SOrry if i have taken more traffic
    with this irrelevant questionI'm not trying to be rude. I'm just suggesting that you'll get better replies on a JavaScript forum.

  • Representating Hierarchical (Parent-Child) relation graphically using Swing

    Hi,
    I have to represent a hierarchical data which is having Parent-Child relation using Swing. I am not able to upload the image overhere, so I am represnting the data in such a way so that one can understand this problem. If anyone knows how to upload image on Sun forum, please let me know it will be great help for me.
    Parent Root - A
    Child of A - B, C, D
    Child of C - E, F, G
    Child of F - H
    Child of D - J, K
    The data needs to be represented in two formats-
    1. Tabular Format
    I am able to represent data in this format using combination of JTree and JTable. The data is getting represented in tabular format and I am able to expand and collapse the parent nodes to see the childs. The tabular data will look like below structure,
    A
    I_B
    I
    I_C
    I I_E
    I I
    I I_F
    | I |_H
    | I
    I I_G
    I
    I_D
    I
    I_J
    I
    I_K
    2. Graphical Format
    This is the other way in which I need to represent the data. The above shown tabular data needs to represented in graphical form. The end result should look like,
    I A I
    ____________________I__________________________
    ___I___ __I__ __I__
    I  B  I I  C   I I  D   I
    ____________________I____________ ______I________
    ___I___ __I__ __I__ __I__ ___I__
    I  E  I I  F   I I  G   I I  J   I I   K    I
    __I___
    I   H   I
    Each box representing alphabates will be a component (like JPanel) which will have details about the item to be displayed. The parent and child should be connected with each other using line. This representation should be created at runtime using the hierarchical data. Also the parent and child relations should be expandable/collapsible as they are in JTree.
    I am not able to find any component or any solution in Swing which can provide me this graphical representation. It will be great help if anyone can help me out in this.
    Thanks in advance.

    Sorry for inconvinience for the data representaion in graphical form. I don't know how this get jumblled. Please try to figure out the tabular/graphical representation using pen and paper as forum is not providing any help to upload an image.
    Sorry again for inconvinience.
    Thanks
    Manoj Rai

  • Parent Child list form using infopath 2013

    Hi All
    I have two SharePoint list heaving parent child relation ship ( one parent have multiple child) now i want to create a single form in info path 2013 using code less solution . I am using SharePoint Online don't want to use c# code.
    Journey Man

    Hi,
    Please check this
    https://www.sharepointdrive.com/blog/how-to-establish-a-parent-child-relationship-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/6493/how-to-automatically-link-parent-in-child-list-new-form
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Session expiration issue with parent and child window

    Hi,
    We have two applications (App1 - Implemented using JSF, Spring and Hibernate and App2 -Implemented using Spring MVC, Spring JDBC).
    I have implemented 'Test Access Content' functionality in App1.
    First admin user (Role- Manager) needs to login to App1
    As part of 'Test Access Content' functionality, he enters URL with encrypted key and click 'Test Access' button.
    It opens new window (implemented using java script - window.open) and hits spring controller of App2.
    In spring controller of App2, I am decrypting the key to get user details. After that i am setting user details in session, constructing final URL to display actual content.
    Problem is parent window maintains session till child window renders response. Once child window renders response, parent window loosing session.
    So, if i click any button in parent window after child window renders response, it displays login page as there is no session for parent window.
    Please note that App1 and App2 are sharing same domain. only context paths are different for both apps (app1 and app2).
    Any suggestions on this issue are much appreciated. Please let us know if you have any questions.

    Hi,
    When you open a child window from parent window then you can access child data in the parent window through javascript.
    We have a main web page. There are quite many links on it from which >user can open new web pages but the data is saved when the submit >button on the main page is clicked. Also data that user entered on the >other sub pages is not displayed in the main window.
    1 is this a case of parent and child window.case 1 When you are submitting the main page you need to run javascript function and get data from child windows and save that to database or session. next time when you are displaying the main window you need to query session or database to display the child window data in the main window.
    Case 2> closing child window and you need data in the parent. This can be done in two ways.
    1> When you are closing the child window populate some variables of the main window using javasript.
    2> Save the values in the database or session and refresh the main window and extract data from database or session
    Where should the data be saved that user enetered on the sub pages as the data is not shown in the main page - should it be stored in the session?It is design decision. You can store data in either session or database when you are closing the child window. But ifyou are saving the data on the main page then you can populate main page with child windows data using javascript. Save the data t database when main window data is saved. Depends on business requirements.
    In short if you are saving child windows data in session or database then you need to refresh main screen to pull that data otherwise populate main screen using javascript.
    I hope i answered your questions :) best of luck

  • How to assign ALV for parent node and child node that uses supply method.?

    HI Dear friends,
        I need to display header details ( VBAK ) and Item details ( VBAP ). I have created two node like HEADER_NODE inside this i have created ITEM_NODE for this item node i use supply function 'GET_ITEMS'  any way it is working only when crete two separate table and binding but when i come to work with ALV i am totally confused .. i have created two 'View Controller UI Elements'   when i try to map HEADER_NODE  it mapped properly but for ITEM_NODE it shows mapping already defined. return status message as 'Action Cancelled' . In result both ViewContainer shows only HEADER_NODE data only.
    How to achive ALV for  Parent, child node that uses supply function ? ?
    Thank you

    Delete Mapping is not enabled, that means there is no mapping done yet.
    I just tried what you are saying and the application works and i am able to map the header table and item table and also again i could map the tables any number of times.. i didn't get any such message, sorry i couldn't recreate the scenario. might be there is something wrong in the context.
    i just did it like this.
    Please also move this to Web DynPro Discussion, Hope that would be helpful.
    Message was edited by: Syed Ghulam Ali

  • Regarding Sales order creation using Material with Parent-child

    hey guys
    i cannot create sales order for parent child material using Below bapi(BAPI_....ORDERDAT2).
    Could you please tell me if any special parameter should be set with this bapi
    to create the order for PARENT MATERIAL AND child materials.
    i am able to create parent-child material order using VA01. but cant using BAPI
    just for information I am passing Parent materail alone to the BAPI.
    can somebody give suggestion.
    ambichan

    Hi AMBI ,
    SAP will explode the Sales BOM while creating the Sales Order.
    useful Tcodes : CS03.
    Bom Usage : 5.(sales Bom)
    Regards
    prabhu

  • Parent / Child Groups in Portal with LDAP

    Heya,
    we are using EP 7 on SP 10 (NW 7), for User Authentication we use the UME with a configured (writable) LDAP
    Server as backend with a flat hierarchie. We have a Federated Portal Landscape with
    3 Portals connected to one "main" portal and using Remote Role Assignement on the main portal for
    our right managenemt.
    Remote Roles which are added to Groups are working fine, but as soon as we try to use
    the parent/child group functionality we are facing the problem that the user who logs on
    has no access to anything in this group.
    According to http://help.sap.com/saphelp_nw04s/helpdata/en/af/0cfc3f09c2c442e10000000a1550b0/frameset.htm
    the only restriction for the use of child / parent groups is that:
    "If user management is set up with write access to an LDAP directory, the following restriction applies:
    When assigning members to a group that is stored in the LDAP directory, you can only assign users or
    groups that are also stored in the LDAP directory. You cannot assign users or groups from the database
    to groups from the LDAP directory. "
    We fullfill the above condition (everything is LDAP based) - sooo: Any Hints for me / Someone facing
    the same problem.
    Thanks,
    Marco

    Hi Murali,
    User Configuration
    A particular company has the following setup:
    &#9679;      Two roles: External and Internal
    &#9679;      The role Internal contains users who also belong to two user groups: N.America and Asia
    &#9679;      User A belongs to both the role Internal and the user group N.America
    &#9679;      User B belongs to both the role Internal and the user group Asia
    &#9679;      User C belongs to the role External
    Conditions Defined in Portal Display Rules
    1. If Group = N.America
       Then Portal Desktop = Orange Flavor
    2. If Role = Internal
       Then Portal Desktop = Green Flavor
    3. If Group = Asia
       Then Portal Desktop = Blue Flavor
    4. If Role = External
       Then Portal Desktop = Red Flavor
    Note that user A matches conditions 1 and 2; (ii) user B matches conditions 2 and 3; and (iii) user C matches condition 4.
    Results
    According to the list of priorities, these are the results:
    &#9679;      User A receives portal desktop "Orange Flavor" (according to condition 1 which has priority over rule 2)
    &#9679;      User B receives portal desktop "Green Flavor" (according to condition 2 which has priority over rule 3)
    &#9679;      User C receives portal desktop "Red Flavor" (according to condition 4)
    still any help on portal disktop rules to can see this link http://help.sap.com/saphelp_nw70/helpdata/EN/4b/29cf122f414721964269e1b675d62c/frameset.htm
    if helpful don't to give points
    thanks
    best regards
    ep

  • Select List (Parent/Child) LOV

    I have the Easy Oracle HTML-DB book, they give an example of a
    Parent Child Select List using a query.
    Does anyone know how to apply the Parent/Child relationship with
    a List of Value generated from a table.
    Example
    Parent Child
    Car Pontiac
    Car Buick
    Car Cadillac
    Car Nissan
    Truck Tahoe
    Truck Silverado
    Truck F150
    Truck Titan
    The parent(s) in the above example are Car/Truck, the children are in the adjacent column.
    Objective: When the parent "Car" is chosen, only the "Pontiac/Buick/Cadillac/Nissan" will be available, once the child is selected,
    wish to submit to a empty table that can grow dynamically.
    OS: Windows: XP
    Oracle ver.: 10g
    Apex ver.: Release 2

    Hi,
    are you just having one table storing all the values?
    1) Create a "Select list with Submit"
    2) Lov query would be something like
    SELECT DISTINCT
           CAR_TYPE AS D
         , CAR_TYPE AS R
      FROM WHATEVER_TABLEThe distinct is only because you have mixed your parent and child values in one table instead of having two separate tables with a FK from the child to the parent.
    3) Create another "Select List"
    4) Lov query would be something like
    SELECT CAR AS D
         , CAR AS R
      FROM WHATEVER_TABLE
    WHERE CAR_TYPE = :P2_CAR_TYPE-> in the where clause you restricting the second lov with the value the user has selected in the first select list.
    The first "Select List with Submit" will trigger a full page refresh when you select a car type. If you want to avoid that you can use the AJAX based "Cascading Lov" feature of my ApexLib Framework (see http://apex.oracle.com/pls/otn/f?p=33231:4 ) or search on the forum for "cascading lov ajax" for other similar solutions.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How to define Side Panels for linked to Child Window Applications

    We are trying to use the NWBC Side Panel with PPM 6.0 in NWBC 3.5.  We have a Role that has a menu defined that gives the users a link to the INM_WORKCENTER_APP which displays the current user's Tasks in a table.
    When we click on a task in the table it opens the task details using the CPROJECTS_FPM application in a new window.  This new window that opens up doesn't have any of the Side Panels that we have defined on the role with the main menu links.
    We have tried to add the side panel using different application alias and at different levels in the Role, but can't get a Side Panel to show up on the child window.  We even tried to switch the window to open INPLACE in the main window and it still switches to no side panels.  The only side panels we are able to see is side panels that the user has manually added under connections and the Data Context Viewer side panels.
    Is NWBC capable of having side panels to be defined to be available for these linked to child applications that are called from a main application screen?  If so, what is the possible configurations we need to make on the role for this to work properly?
    Thanks in advance for any help!

    Wanted to close this thread with the solution that worked for us.
    We had to change the Launchpad configuration for Role CPROJECTS Instance OIF.  We changed the Application from a Web Dynpro ABAP type to Object Based Navigation.  Set the Application Parameters Business Object to PROJECT and Operation to DISPLAY.
    Then for our role defined in PFGC for our NWBC, we added a new menu item to the Web Dynpro application CPROJECTS_FPM with Configuration CPROJECTS_FPM.  Then under Object Based Navigation we set the Object Type to PROJECT and Method to DISPLAY to match what we set above in the Launchpad.  Then set the menu item to be invisible since we didn't want it to show to users.
    Now when we launch the child window it uses OBN and sees the definition in our role and utilizes the same Side Panel definitions defined for the role.

  • QA_RESULTS_INTERFACE, entring parent-child records.

    I am unable to create parent - child relationships while using QA_RESULTS_INTERFACE and import program.

    I am unable to create parent - child relationships while using QA_RESULTS_INTERFACE and import program.

  • Calling a Function in the Parent Window from the Child Window

    QUESTION: How do I call a function resident in the parent
    window from a child window?
    BACKGROUND
    I have a JavaScript function resident in the parent window
    that reformats information obtained from the Date object and writes
    the result to the parent window using the document.write( ) method.
    I would like to call this function from the child window and have
    it write to the child window instead. Is this possible? If not,
    must I rewrite the entire function and nest it in the below code?
    If so, what is the proper form of nesting?
    CODE: The code that creates and fills the child window is
    provided below. The highlighted area indicates where I would like
    to enter the information from the function resident in the parent
    window. I have tried every imaginable permutation of code that I
    can imagine and nearly destroyed my parent document in the process.
    I am very happy that I had a back-up copy!
    function openCitationWindow() {
    ciDow = window.open("", "", "width=450, height=175, top=300,
    left=300");
    ciDow.document.write("A proper way to cite a passage of text
    on this page:<br /><br />Stegemann, R. A. 2000.
    <cite>Imagine: Bridging a Historical Gap</cite>. " +
    document.title + ". [<a href='" + location.href + "'
    target='_blank'>online book</a>] &lt;" + location.href
    + "&gt; (");
    MISSING CODE;
    ciDow.document.write(").<br /><br /><input
    type='button' value='Close Window' onclick='window.close()'>");
    ciDow.focus();

    Never mind - I was doing something very stupid and wasn't
    calling the function as a method of a movie clip. I was simply
    calling checkTarget(event) rather than
    event.currentTarget.checkTarget(event); which seems to work.

  • Calling a function in child window from parent window

    Hi,
    How can I call a method in child window from parent window in adobe air using javascript. In the following example I need to call mytest() function in
    child.html from parent.html file.
    Thanks,
    ASM
    //parent.html
    <HTML><HEAD>
    <script>
    var initOptions = new air.NativeWindowInitOptions();
    initOptions.type = air.NativeWindowType.NORMAL;
    initOptions.systemChrome = air.NativeWindowSystemChrome.STANDARD;
    var bounds = new air.Rectangle(300, 300, 600, 500);
    var html2 = air.HTMLLoader.createRootWindow(false, initOptions, false, bounds);
    var urlReq2 = new air.URLRequest("child.html");
    html2.load(urlReq2);
    html2.stage.nativeWindow.activate();
    html2.window.mytest();       //NOT WORKING
    </script>
    </HEAD><body></body></HTML> 
    // child.html
    <HTML><HEAD>
    <script>
    function mytest()
      air.trace("in child window");
    </script>
    </HEAD> <body></body></HTML>

    I suspect your problem is that the child window hasn't been created by the time you call the function in the parent.Loading the content is an asynchronous processes -- AIR doesn't stop executing your code until the window has finished loading child.html. So, you will need to add an eventlistener to html2 and call the function from there:
    html2.addEventListener( "complete", onChildLoaded );
    function onChildLoaded( event )
         html2.window.mytest();

Maybe you are looking for