Parent child question

Supose I have a MDI application.
How to know in the parent if a child has been created or distroyed? for instance, as soon as a child is created/detroyed I want a notification in the parent that there is a child created/distroyed?
Thanks

All you need to do is catch the close method,
??? setDefaultCloseOperation() ???
or
As stated above use a listener... (personally not having coverd MDI's in java yet try...)
Use the 'InternalFrameListener' which has the following handler methods:
internalFrameActivated()
internalFrameClosed()
internalFrameClosing()
internalFrameDeactivated()
internalFrameDeiconified()
internalFrameIconified()
internalFrameOpened()

Similar Messages

  • Parent Child Questions

    Hi All
    Fairly new at this and am a bit confused.
    I have been given the task of cleaning up certain tables in my DB. I am running into parent / child issues.
    I want to remove all entries from Table A. When i try and delete one row it gives me a constraint violation. It tells me there is a child record out there. So i go ahead and disable that constraint, go back to table A and try the delete again. I get a different another violation telling me that there is a child record on a different table. And on and on the story goes.
    Now I could keep doing this but the schema i am working on has 1051 tables and just over 6000 constraints. So as you can see this might take me a month to sit here and do that. Not very keen on that.
    What I am after is:
    1. A program / script that will lay out all the parent child relationships for me. Coming across each one as i try and delete is painful
    Would it be possible to get something like:
    Table A
    -- Table B
    -- Table C
    Table D
    -- Table E
    -- Table G
    -- Table F
    2. All the constraints have been created with a delete rule of 'No Action'. I think the easiest thing to do would be to go to the parent table (or what I think is the parent table) and change this to on delete Cascade. From what it looks like I don't think you can do this. Does anybody know how to? Or if its possible?
    3. The third option I am thinking of is:
    Disable All the constraints on what I think is the parent table. Remove entries from the child tables. Enable the constraints.
    Now my issue here is, how do i know all of the child tables? I guess that goes back to my question 1.
    Thanks in advance. Sorry for the story.
    The lack of documentation / diagrams here is driving me nuts :)

    You can use tools like Microsoft Visio to reverse engineer the tables and their relationships.
    You can also generate a list of parent-child related tables from user_constraints.
    something like:
    SQL> SELECT TABLE_NAME,
      2         (SELECT TABLE_NAME
      3            FROM ALL_CONSTRAINTS R
      4           WHERE R.OWNER = U.R_OWNER
      5             AND R.CONSTRAINT_NAME = U.R_CONSTRAINT_NAME) PARENT_TABLE
      6    FROM USER_CONSTRAINTS U
      7   WHERE U.CONSTRAINT_TYPE = 'R'
      8  /
    TABLE_NAME                     PARENT_TABLE
    EMP                            DEPT
    SQL>

  • UCCE Parent Child Questions

    Assuming I introduce a new parent UCCE 8.x system for a new service with a v7.x child system that's already setup to handle calls for existing services can you clarify the following;
    Can the child UCCE instance handle some calls from the new service via the parent whilst also handling local calls from existing services? Are there any restrictions?
    How does the agent licensing work? Do the agents on the child system also have to be licensed on the parent?
    Can the new 'Packaged CCE' be considered for the new parent system as the total number of agents will be less than 200?
    Also need to consider question 1 if the child is a CCX system
    Many Thanks, Ade.

    1. Yes, not sure what kind of restrictions you're thinking of, have a look at the overall Parent / Child documentation for limitations etc. though;
    3. No, Packaged CCE is a very specific deployment model, the Parent/Child Gateway PG is not supported here;
    4. Similar to 1.
    Cheers,
    Kris

  • UCCE Parent-Child question

    Dear Networkers,
    I have a question concerning the capacity ICM Parent Child deployement :
    For one UCCE Parent how many UCCE Child can we deploy ? What is the max capacity for one UCCE Parent to support UCCE Childs ?
    Is there a tool that can be used or a document to refer to ?
    Thanks a lot in advance.
    Best Regards.

    Hi,
    Page  of  41 "Cisco Unified Contact Center Enterprise 8.x SRND" tates,
    The Unified CCE Gateway PG can connect to a Unified CCE child that is using the Unified CCE System PG or to Unified CCX. If the Unified CCE child has multiple Unified CCE System PGs and peripherals, a separate Unified CCE Gateway PG peripheral must be installed and configured for each one in the Unified ICM parent system. When deployed on a separate server, a Unified CCE Gateway PG can manage multiple child Unified CCE peripherals or multiple child Unified CCX systems (up to five child systems).
    Hope it helps,
    Anand

  • Parent child table question

    HI i have some questions which iam unclear please help me
    1) in a parent child relationship.. is it always 1-m relation from parent to child?
    2) can a parent table be on many side? i.e can a child - parent be 1- m?
    3) if i itake employee as child table and department as parent table then dept_id will be the foreigh key in employee table ...
    Now if i want to add a new employee who is not assigned to any department can i add it ?
    4) In an identifying relationship ... a child table has concatenated primary key (pk of child,pk of parent)
    should we still add any other primary key to the table....in addition to this concatenated key?
    thanks in advance
    raj

    Hi!
    1) in a parent child relationship.. is it always 1-m relation from parent to child?
    yes unless you create a unique index on the foreign key column
    2) can a parent table be on many side? i.e can a child - parent be 1- m?
    no, if you need an n-m you will need an intersection table
    e.g. employees - emp_dept - departments
    in this case the emp_dept table would contain the foreign keys of employees and departments
    3) if i itake employee as child table and department as parent table then dept_id will be the foreigh key in employee table ...
    Now if i want to add a new employee who is not assigned to any department can i add it ?
    no, you will have to insert the master first
    Best regards,
    PP

  • Question about File Content Conversion and parent-child relationships...

    Hello!
         I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one.  I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario.  The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content. 
    The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
    Here is the flat (non-XML) file layout that is coming into the file adapter:
    FileHeader
    DocumentHeader
    DocumentItem
    DocumentHeader
    DocumentItem
    and so on (until the number of documents is complete
    I would really like the content to be converted so that the line items stay under their parent document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader>
       <ItemHeader>
       </ItemHeader>
    </DocumentHeader>
    <DocumentHeader>
       <ItemHeader>
      </ItemHeader>
    </DocumentHeader>
    But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <ItemHeader></ItemHeader>
    Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
    Thanks,
    John

    Hi,
    Check some links on FCC.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

  • This is very simple question. Parent-Child Relationshiop

    Hi~ All.
    I think this is not too difficult. But I'm newbie to Flex
    I don't understand relationship of Parent-Child, and what's different .addElement,  .addChild.
    I made some code.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          width="481" height="442" minWidth="955" minHeight="600" creationComplete="initApp()">
    <fx:Script>
      <![CDATA[
       private var _cam:Camera;
       private var _vid:Video;
       private function initApp():void{
        _cam = Camera.getCamera();
        _vid = new Video();
        _vid.attachCamera(_cam);
       private function createMyVideo():void{
        view.addChild(_vid);
      ]]>
    </fx:Script>
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Button x="36" y="71" label="Create My Video" click="createMyVideo()"/>
    <s:VGroup x="192" y="71" width="200" height="200" id="view">
    </s:VGroup>
    </s:Application>
    When I click the button, I wanna show my live video.
    But I got a error message.
    Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.
    What's my mistake?
    Thanks in advance.
    Kevin.
    ps. Sorry for my English.

    This post has a good description of elements vs. children: http://www.billdwhite.com/wordpress/?p=296

  • How to allow Sharepoint users to login from multiple parent-child accounts?

    Our client has mutliple AD domains and wants to allow people which have multiple AD accounts in multiple domains to login as THE SAME user:
    - only primary account will be visible in search
    - there will be only one user profile with all informations gathered from all sub accounts
    - permissions for the sub account will be in sync with parent account
    - task generated for parent will be visible for child accouns too etc
    - ad admin can link the account together in the Active Directory - this link is permament (even if we move users to another OU) and ad admin can define which account is primary and secondary (parent/child)
    How we can implement this in Sharepoint 2010 Std Server?

    Everything in SharePoint keys of the Security Identifier (SID) of a user.  Each user in a domain has a unique SID, so there is no way to have multiple users recognized in SharePoint as the same user.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to update a parent child hierarchy in OBIEE

    Hello All
    Quick question about updating parent child hierarchy in OBIEE.
    As we know, OBIEE 11G allows us to create value based hierarchy by generating table creation script and insert script. In the typical example of employee dimension, the parent child relationship table will be created with the following 4 attributes:
    MEMBER_KEY, ANCESTOR_KEY, DISTANCE, IS_LEAF
    So, what if later in the years some of the employees got promoted, retired or transferred? The value based hierarchy is going to change because person 1 reports to manager 2 now instead of 1. Obviously, the records in employee dimension is going to be updated. When that happens, how to update the parent child relation table with the same information? Do we have to rerun the insert script? How do we keep the history of employee changes and hierarchy changes?
    Please advice
    Thank you

    I guess it will update when the structure changes,Let see the response from other gurus.
    Thanks,

  • Parent child relation tables

    Hi experts,
    Please check it my code . in this procedure first cursor only inserted into t1 temp table not inserted second cursor please check it and modified the my code.
    i want inserted parent child relation table like bellow
    parent child
    a b
    a c
    a d
    b l
    b m
    b n
    c d like that only inserted
    PROCEDURE TEST_PARENTS_CHILD( p_TABLE VARCHAR2)
    IS
    CURSOR c(P_TABLE varchar2)
    IS
    SELECT p.table_name PARENT, c.table_name CHILD
    FROM user_constraints p, user_constraints c
    WHERE (p.constraint_type = 'P' OR p.constraint_type = 'U')
    AND c.constraint_type = 'R'
    AND p.constraint_name = c.r_constraint_name
    AND p.table_name = P_TABLE;
    CURSOR C1(p_child varchar2) IS SELECT p.table_name PARENT_TABLE, c.table_name CHILD_TABLE
    FROM user_constraints p, user_constraints c
    WHERE (p.constraint_type = 'P' OR p.constraint_type = 'U')
    AND c.constraint_type = 'R'
    AND p.constraint_name = c.r_constraint_name
    AND p.table_name = P_CHILD;
    type array
    IS
    TABLE OF T1%ROWTYPE INDEX BY PLS_INTEGER;
    t_data ARRAY;
    BEGIN
    FOR I IN C(P_TABLE)
    LOOP
    FETCH C bulk collect INTO T_DATA limit 1000;
    --- EXIT WHEN C%NOTFOUND;
    FORALL I IN 1..T_DATA.last
    INSERT INTO T1 VALUES T_DATA(I);
    FOR J IN C1(i.CHILD)
    LOOP
    FETCH C1 BULK COLLECT INTO T_DATA LIMIT 1000;
    --EXIT
    --WHEN C1%NOTFOUND;
    FORALL j IN 1..T_DATA.last
    INSERT INTO T1 VALUES T_DATA(j);
    end loop;
    END LOOP;
    END TEST_PARENTS_CHILD;
    Regards,
    Venkat

    You've been asked before on your previous questions (all of which still appear to be unanswered) to read the FAQ: {message:id=9360002} and post correct details of your question, and use {noformat}{noformat} tags to preserve your code/data formatting on the forum.
    But still you post a question lacking all the information and formatting.  If you can't be bothered to help us understand your issue (and read your code), why do you expect others will be bothered to try and help you?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Parent/Child Master Data Type

    I recently created a new master data type in my model, which included one attribute with the 'parent' check box checked - to signify that it was to be used as the parent.
    Upon activating the master data type - the system auto generated several other attributes within the master data type.  My question is, what is the purpose of these additional attributes and how are they to be used?
    Before Activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    After activation:
    Attribute
    Description
    Notes
    ID
    ID
    << marked as key and as required
    DESCR
    Description
    << no special check boxes checked
    PID
    Parent ID
    << marked with parent check box
    IDA
    Ancestor: ID
    << auto added after activation
    IDL
    Level: ID
    << auto added after activation
    IDLA
    Ancestor: Level: ID
    << auto added after activation
    IDPTH
    Path: ID
    << auto added after activation
    IDPTHA
    Ancestor: Path: ID
    << auto added after activation
    DEACRA
    Ancestor: Description
    << auto added after activation
    PIDA
    Ancestor: Parent ID
    << auto added after activation

    https://share.sap.com/a:r2l29c/MyAttachments/38b00c31-a7f4-404c-8247-1a99ef4b0509/
    Hey JJ,
    The purpose of these attributes is for parent-child hierachy relationship.
    In addition to above mentioned attributes, you should also notice (via HANA studio), that another Planning object gets generated automatically.  The new planning object should be the name of your parent-child object plus "_ANC" prefix at the end.
    If you take a look at this planning object, you will notice that the object contains all the generated attributes (your attriubute plus "A" prefix at the end) in the definition.
    Once you load data into your parent-child hiearchy object the "_ANC" object will automatically get populated with parent-child node relationship.
    "A-prefix" attriubutes essentially represents the attributes of ancestor in this case.
    In addition, in order to do Ancestor rolllup in your calculation you will also need to create an ancestor planning level which contains all the attriubutes of your base planning level as well as these "A-Prefix" attributes.
    Please take a look at the document we created for "How to configure Parent-Child Hiearchy" from the share link
    It has more detailed information.
    Thanks.
    Daniel.

  • Parent-Child-Parent Sql

    Hi:
    I have two tables.  My main table contains item and quantity.  The second table contains  material_item, item  and quantity. They are joined on item.  The next step is to check if the material_item contains in the item record in
    the second table.  If it does not, we insert the record into a brand new table.  If it does, we will repeat the last step.  We will check if the material_item is also an item record.   It is parent/child relationship.  But the
    child can be a parent as well. 
    Table A
    Item  Quantity
    123    1
    234   2
    Table B
    Material Item     Item    Quantity
    bbb                    123            2
    pop                    bbb           1
    wer                   pop            1
    234                  aaa            1
    Item 123  contains material item bbb, pop, wer  (3 records)
    Item 234 (1 record)
    End Result - I will need to insert 4 records into the database. 
    I am trying to explain this not sure if I explain this clearly.   Hopefully, the example will give you more insight. 
    I have been staring at this for quite a while.  I am hoping a fresh  pairs eyes will be able to tell me on what I need to do. 
    Thanks for your assistance.
    kkmick

    It seems to me that your example is the opposite of what is stated in the question "If it does not, we insert the record into a brand new table"
    If this is what you want try something like
    Insert into new table ....
    where not exists (select item from materialitem)
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Parent Child heirarchies in OBIEE11g

    Hello Experts
    I have got a requirement from the client that they need to have multiple version of Parent child heirarchies coming out from a particulat dimension. To elaborate furthet say suppose there is a dinemsion called Profit Center where we need to create Parent child heirarchy. This is good if only one heirarchy needs to be created out of it. But instead there are three heirarchies - One MAster and two Custom.
    There would changes in the various parent child level in the reporting that's why different version of heirarchies.
    Having said that , one more issue is every month the heirarchies will changes that means the child can move to different parent . Some new parent/ child could be added etc. SO every month the Master and two custom heirarchy need to be refreshed.
    So my question is :
    1. How to achieve three version of Parent Child heirarchies. I know how to create Parent child heriarchies but three differnt heirarchy version out of a single dimension is the issue.
    2. How to automatocally refresh these heirarchies every month.
    Any help /pointer would be of great help.
    Regds

    Hello All
    Can anyone put some light on this pls...

  • Sorting a List on Parent Child Relationship

    I have to sort a list on Parent Child relation
    say
    I have a following list
    Object(Id,ParentId,.........)
    obj1(1,1,........);
    obj2(2,1,........);
    obj3(3,3,........);
    obj4(4,1,........);
    obj5(5,3,........);
    obj6(6,1,........);
    obj7(7,3,........);
    obj8(8,4,........);
    Logic is such that
    If Id and Parent Id is same then It is Parent Record
    I want the Result like
    obj1(1,1,........);
    obj2(2,1,........);
    obj4(4,1,........);
    obj6(6,1,........);
    obj3(3,3,........);
    obj5(5,3,........);
    obj7(7,3,........);
    obj8(8,4,........);
    Suggect Some Logic...............
    Thanks in advance.............

    sAsho wrote:
    That's the question how to do that?????????????????????????One question mark is sufficient. If you're going to go out of your way to write like an idiot, people won't take you seriously.
    "How do I do that?" is way to broad a question. You need to do some research, take your best shot, and post a specific question about the specific parts that are giving you trouble.
    Suggest something. I did suggest something.
    I suggested what you should google for to get you started. Just like writing clearly and intelligently, if you can't be bothered to read what people suggest and put in the effort to follow that suggestion and do your own research, you'll find people will quickly lose interest in trying to help you.
    Now I am additionally suggesting that you 1) pay closer attention and 2) do your own research.
    Recurcive sort kind of a think.................No idea what you're saying here. See my first point in this reply.

  • How to filter parent & child rows from tables while export usingData export

    Hi,
    I have a requirement of export schema. Assume there is a account details table and account transactions table under schema.They have parent child relation exist. if i filter accounts from account details the corresponding transactions in account transactions table should be filterd.How to achieve this?
    Regards,
    Venkat Vadlamudi
    Mobile:9850499800

    Not sure if this is a SQL and PL/SQL question or whether it's an Oracle Apps type question or a Database General.
    Whatever, you've posted in the wrong forum (http://forums.oracle.com/forums/ann.jspa?annID=599)
    You should post in a more appropriate forum e.g.
    PL/SQL
    General Database Discussions
    etc.
    locking this thread

Maybe you are looking for