Parent child SWF SWF

d

use:

var child_loader:Loader = new Loader();

var req:URLRequest = new URLRequest ("child.swf");

child_loader. Load (req);

child_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, done);

function done(e:Event):void {}
addChild (child_loader);
MovieClip (child_loader.content) .callFunction (' "child has loaded" ');
}

Tags: Adobe Animate

Similar Questions

  • Parent timeline control child swf

    Hello

    I need help and tried trolling the forums and web site for hours, without result, where my post here.

    Here's my situation:

    I have a captivate file that is essentially like a skin, containing headings, buttons and explanatory text, which is the parent swf file.

    I then save a software simulation in another captivate file which is the child swf file. I then publish this as a swf file. This swf is then imported into the original file from captivate with text instructions for software simulation.

    Is it possible that when a button is pressed inside the software simulation, that the text of statement in the parent file may change? Ideally by scrolling the text upwards, or by an order of hide/show, where display instructions will be linked to the next step and automatically indicates the next step they press a button in the child swf file.

    I hope that makes sense. If that sounds confusing, I will try to explain the parts that don't make sense.

    I hope that someone out there will have an answer for me, because I'm having no luck try for me right now.

    Thank you all

    See you soon

    Scott.

    Hello

    Totally agree with rod on inclusion not the SWF file created by CP in a CP - file.If you want to have the sims in your CP file to a smaller size, it is also possible in this way:

    • create each sim to a different file at the resolution they have desired
    • resize the file to the final resolution of the main file; You can use a master slide, possibly with additional information like logo... maybe my blog post about slide masters Knockout can be useful: create and use a master Knockout slide
    • Copy / paste the sim back in the main file

    Lilybiri

  • ContainerController issue when load child swf

    Hello

    I have swf parent (test.fla). Simply, it will load a child swf (child.fla).

    Parent once loaded the child swf file I can acess point of the child and its clips.

    Question:

    When I manufacturer a variable like "ContainerController", the swf parent not able to gain access to clips of the child. How to solve this problem?

    When I do not include "ContainerController" in child swf, I got the track of the parent as a class (its what I expect)

    [object MainTimeline]

    -> MC

    MC1->

    When I include "ContainerController" in child swf, I got the track of parent (litigation) class

    [object MainTimeline__Preloader__]

    instance3->

    instance5->

    Here you can get the demo files for your reference: https://rapidshare.com/files/3986374440/test.rar

    Thank you

    Siva

    Click file > publication settings > advance settings actionscript (key next to the drop-down list icon script) > library > default connection > merged with code > ok > retest.

    In addition, here are all the ways to communicate between two files, as3, http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • Child .swf problem

    Hello, I was hoping that someone may be able to help me with a problem I've been and unloading external .swfs, ill try to explain this better than I can.

    I have two .swf files, that are connected to an external .as file. One is the main, the other is the child being loaded in the main .swf file. The user clicks a button in the .swf main trigger of a function contained in the .as file that load child .swf.

    Now, I have a Boolean variable in the child .swf, which gets the value true to a certain part of the movie, this variable is sent in the .as file then taken the start of a function using ENTER_FRAME to unload the movie (unloadAndStop ()). The problem, I think I'm having is the sprite container (which is created in the .as file), is not recognized as a child, so will not unload. However if I create a CLICK MouseEvent and point it at the sprite unloadAndStop() function works well, but I would like to avoid that if possible. That's what I have in the .as file:

    (endFind is the Boolean value is set in the child .swf and the loadSWF() is called by a button in the main .swf)

    import flash.events.Event;

    var url: String = "objectSearch.swf";
    var _Req:URLRequest = new URLRequest (url);
    var _swfLoader:Loader = new Loader();
    var _swfContent:Sprite = new Sprite();
    var endFind:Boolean;

    function loadSWF (): void {}

    _swfLoader.load (_Req);
    _swfContent.addChild (_swfLoader);
    addChild (_swfContent);
    setupListeners (_swfLoader.contentLoaderInfo);
    }

    function setupListeners(dispatcher:IEventDispatcher):void {}
    dispatcher.addEventListener (Event.COMPLETE, addSWF);
    }
    function addSWF(event:Event):void {}
    event.target.removeEventListener (Event.COMPLETE, addSWF);
    _swfContent = event.target.content;
    }

    function unloadSWF (): void {}
    _swfLoader.unloadAndStop ();
    trace ("unloadSWF:", _swfLoader.unloadAndStop ());

    //!!!!!! removeChild throws ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.//!

    removeChild (_swfContent);
    _swfContent = null;
    }

    Adding a mouseEvent to sprite seems to work ok
    _swfContent.addEventListener (MouseEvent.Click, endCheck);
    function endCheck(e:MouseEvent) {}
    trace ("Click");
    unloadSWF();
    }
    This is not because of the method unloadAndStop().

    addEventListener (Event.ENTER_FRAME, endCheck);
    / * function endCheck(e:Event) {}
    {if(endFind==true)}
    unloadSWF();
    }
    }*/

    If you need more information please let me know. I really appreciate everybodys help and comments.

    A better way to deal with children is to listen only for them to say something and then take action.  What that means, it's basically the child to have just send an event and have the parent look for him so that he could take action.  So for this you need to assign a listener to the object after it has loaded...

    function addSWF(event:Event):void {}

    event.target.removeEventListener (Event.COMPLETE, addSWF);

    _swfContent = event.target.content;

    MovieClip (_swfContent) .addEventListener ("unloadMe", unloadSWF)

    }

    and set the unloading feature to be the event handler...

    function unloadSWF(evt:Event):void {}

    .. .etc

    }

    and in the child swf just got it dispatches the event your listener expects when it must be unloaded.

    dispatchEvent (new Event ("unloadMe"));

  • How to call a function of child swf

    Hello

    Here is that a parent SWF load a child swf file and there is a button/movieclip in child swf for example childBtn_mc, I now want whener I click on this childbtn_mc in parent SWF (like child swf is loaded into a parent swf file) thanks to a function in the parent swf.

    for ex.

    child AS SWF:

    childBtn_mc.onRelease = childBtnClicked;

    function childBtnClicked() {}

    trace ("call of the child");

    }

    SWF parent AS:

    loadMovie ("child.swf");

    chilBtn_mc. onRelease = childBtnClickedUsingParent;

    function childBtnClickedUsingParent() {}

    trace ("parent call");

    }

    ::::::::::::

    After compling the file when I click on childBtn_mc, trace = > call of the child

    and I want no trace of "the call of the parent.

    Help, please.

    Thank you.

    its DONE... Thanks kglad

    parent swf AS:

    _root.createEmptyMovieClip("page2MC",2);

    loadMovie ("test2.swf", "page2MC");

    page2MC.greenbtn.onRelease = parentFunction;

    function parentFunction() {}

    trace ("parent of child movieclip function call");

    }

    :::::::::::

    in children such AS:

    greenbtn.onRelease = _parent.parentFunction;

    Thank you.

  • Flash cs6 3.8 AIR app questions: can not load child SWF files

    Hello - I have a flash for ios application that loads external swf child on a button click; When I use AIR 3.8 I can't load. Everything works fine on the generator to preview, but when I publish the device, none of the child SWFS play; It's very strange! Help, please... I don't really know why it doesn't work.

    Here is the code on the main timeline to load the child swf file:

    Start button

    start_button_TRI_herrerasaurus.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_04_3, false, 0, true);

    Import fl.display.ProLoader;

    import flash.events.Event;

    var fl_ProLoader_04: ProLoader;

    This variable keeps track of if you want to load or unload the SWF file

    var fl_ToLoad_04:Boolean = true;

    function fl_ClickToLoadUnloadSWF_04_3(event:MouseEvent):void

    {

    If (fl_ToLoad_04)

    {

    fl_ProLoader_04 = new ProLoader();

    fl_ProLoader_04.load (new URLRequest("dinofilms/triassic_herrerasaurus.swf"));

    fl_ProLoader_04.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete_04)

    addChild (fl_ProLoader_04);

    fl_ProLoader_04.x = 0;

    fl_ProLoader_04.y = 144;

    }

    on the other

    {

    If (fl_ProLoader_04! = null) {}

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    fl_ToLoad_04 =! fl_ToLoad_04;

    }

    function onComplete_04(e:Event):void {}

    e.currentTarget.content.addEventListener (Event.ENTER_FRAME, OEF_04);

    }

    function OEF_04(e:Event):void {}

    If {(e.currentTarget.currentFrame is e.currentTarget.totalFrames)

    e.currentTarget.stop ();

    e.currentTarget.removeEventListener (Event.ENTER_FRAME, OEF_04);

    removeChild (fl_ProLoader_04);

    fl_ProLoader_04.unloadAndStop ();

    fl_ProLoader_04 = null;

    }

    }

    for air for ios 3.6 +, you need TO report a loadercontext even if there is no actionscript in the loaded swf file:

    var loader: Loader = new Loader();

    var lc:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    Loader.Load (new URLRequest("dinofilms/cretaceous_ankylosaurus.swf"), _lc);

  • By using the fonts loaded in child swf

    Hello

    I have an ad container that loads a handful of resources some fonts, and some are sovereign. My problem is that the font is loaded from a url, it is registered and it works well points for textfields created in the ad container. The problem is that when I try to incorporate into the textfields in some of these sovereign funds management, it does not.

    The police charge and gets saved before the swf file is loaded. The SWF then gets an event saying to incorporate the police there as well. When checking, inside the child SWF file, the Font.enumerateFonts table () I see that the fonts have been properly registered. My problem is that even if this table shows me the fonts, when I try to incorporate into the child SWF that nothing is displayed. I even use something like myTextFied.font = Fonts.enumerateFonts () [0] .fontName, while IncorporerPolices is true and antiliasing is set to advanced.

    I tried all sorts of ways, and none does not work. The police who are responsible is stored as a library item with a link within a SWF file. Then to load a font that I load the SWF file containing the font. It works very well for the ad (main SWF) container, but not to children SWFs.

    Any suggestions?

    Thank you very much!

    Vlad

    You should maybe create an instance of the class from the police and save the police in each loaded swf file. It is a RSL approach.

    This post describes the idea:

    http://krasimirtsonev.com/blog/article/AS3-Flash-runtime-font-loading-embedding

  • ActionScript 3 several buttons to open child SWFs can be able to close the child in the child

    Here's the scenario... I have an image on the stage that has several elements that have hot/links on them that should open a child swf above the background and display the details of the items. then have a button in the child swf itself which abducts the child more of the background so that the user can click on another etc. I found this code in the message from someone and I'm trying to change that works for several swf files... He currently works for a single swf. I have a wan to pass the name of the button in front of the .swf in the URLRequest to have the same name as the instance name of the button referent. But I can't understand it. Here is the code I use on stage

    If I understand your question, you should try this:

    var biorequest:URLRequest = new URLRequest (e.target.name + ".swf");

  • Add an object 3d without parent/child relationship.

    Hello

    I have a scene of 3d picture control, I have two objects in there, but when I created the scene I had to use the add object invoke node objects in the scene, so there is a parent/child relationship between the objects, which means that if I move the parent, I also move the child object. Is there a way to create a scene with several objects without the parent/child relationship.

    Thank you.

    -Luis

    Hello, I solved it by first moving the objects and then adding them to the scene. -Luis

  • Blockages with parent/child tables

    Guys,

    We have a parent-child of tables in our database with the DDL below:

    CREATE TABLE 'ACCOUNT '.

    (SELECT 'ACCOUNT_ID' VARCHAR2 (32 BYTE) NOT NULL,)

    X, Y, Z,...),

    'XPK_ACCOUNT' CONSTRAINT PRIMARY KEY ('ACCOUNT_ID');

    CREATE TABLE ACCOUNT_PARTITION ".

    (SELECT 'ACCOUNT_ID' VARCHAR2 (32 BYTE) ENABLE NOT NULL, "BALANCE" NUMBER (5.0) NOT NULL,)

    X, Y, Z,...),

    'XPK_ACCOUNT_PARTITION' CONSTRAINT PRIMARY KEY ('ID_COMPTE', 'BALANCE')

    KEY FOREIGN CONSTRAINT 'ACCOUNT_PARTITION_FK1' ('ACCOUNT_ID')

    SELECT THE 'ACCOUNT' ('ACCOUNT_ID') REFERENCES);

    "Lately, we cross " ""ORA-00060: Deadlock detected while you wait for resources ' errors while DELETING in the tables above. Please note that the tables of the child is not any clue except KP index.


    Could someone please suggest resolution for us to minimize the error of blocking?


    Respect,

    Bugs

    Imagine you remove account, Oracle must verify there is no record of the child in ACCOUNT_PARTITION, this is because as your FK is restrict the deletions (do not allow the removal if there are child records).  As ACCOUNT_PARTITION. Account_id is indexed so it will be an exclusive table lock to find this, locks the table.

    Another way of thinking is, imagine that you have performed the following query without and ACCOUNT_ID index:

    Select *.

    of ACCOUNT_PARTITION

    where ACCOUNT_ID =

    He SHOULD do a full table scan right?  Well well, even on a deletion of the parent. It attempts to identify lines for the purpose of blocking,

    As a general rule, it is always a good idea to index FKs.

  • Parent - child relationship constraint Unique 5.0 apex oracle

    Oky so I will try to avoid duplicate values get inserted in the parent-child node.

    So basically when there's a node parent (Mobile) I can't create same node with the same name.

    Even for the child node, if there is a child node name there may be another named A.

    Structure:

    Mobile (parent) /Android (Child) /KitKat (subchild) (allowed)

    Mobile/apple/ios(Now allowed Same Parent name)

    Win7/Windows/win7(not allowed same child)

    So a big child and the parent must be unique at any time.

    77.JPG

    create an index of single "TEST_UK" on tablename (parent_id, upper (child_name));

    see this too for a case-insensitive unique constraint

    Case-insensitive unique constraint

  • Oracle query convert recursive parent-child level columns

    Dear gurus,

    I have a Hyperion extracted dimension table with my COA in a parent/child layout:

    parent, child

    Acc01, acc001

    acc001, acc0001 etc.

    I need to convert to the:

    level 2, level 1, Level0

    Acc01, acc001, acc0001 etc.

    Please advise, need to feed table table schema for reporting.

    Concerning

    Yannis

    with

    data in the form of

    (select "C01" parent, child 'C001' Union double all the)

    Select 'C001', 'C0001' from dual union all

    Select 'C001', 'C0002"dual union all

    Select "C01", "C002' from dual union all

    Select "C0001', 'C00001' from dual union all

    Select "C00001', 'C000001' from dual union all

    Select 'C000001', 'C0000001' from dual

    )

    Select leve1_1, level_2, level_3, level_4, level_5, level_6

    from (select root0, lvl0, regexp_substr(path,'[^,]+',1,level) VAC, level lvl

    of (lvl0 level select,

    connect_by_root parent root0,

    parent connect_by_root | path of SYS_CONNECT_BY_PATH (Child, ',')

    from the data

    where connect_by_isleaf = 1

    Start with parent (select parent

    data d

    If not exists (select null

    from the data

    where child = d.parent

    )

    )

    connect by prior child = parent

    )

    connect by level<=>

    and prior root0 = root0

    and prior lvl0 = lvl0

    and prior sys_guid() is not null

    )

    Pivot (max (VAC) for lvl 1 as leve1_1, 2 level_2, 3 level_3, 4 level_4, 5 level_5, 6 level_6)

    LEVE1_1 LEVEL_2 LEVEL_3 LEVEL_4 LEVEL_5 LEVEL_6
    C01 C002 - - - -
    C01 C001 C0002 - - -
    C01 C001 C0001 C00001 C000001 C0000001

    Concerning

    Etbin

  • ADF Parent-child tables of rules

    Hello

    I use JDeveloper and ADF 12.1.3. Now, I have a set of related tables, and each of them have only a child table.

    I have a jsf page master / detail for each child table. Inside it, I can insert a row in the parent table and several rows in the child table. Commit the button is clicked validate monkey for the booth tables. Link between the master (parent table) and retail (child table) is done via the partnership link and view for the user interface.

    Now, here's the rule I would apply: I can't commit newly created at the table parent without at least a new inserted row in child table.

    Because I have several parent-child tables in this case of use, I wanted to replace the EntityImpl class and add newly created to each parent table class, so I bussines logic in one place for this tables.

    We will look and taste to the table of one of the parents (not overloaded class EntityImpl):

    The Interior has generated parent EO class

    @Override

    {} public void beforeCommit (TransactionEvent transactionEvent)

    TODO implement this method

    If (! validateParentChildNumber()) {}

    throw new local ("not allowed.");

    }

    super.beforeCommit (transactionEvent);

    }

    public boolean validateParentChildNumber() {}

    If (getParentChild (). GetRowCount() > 0)

    Returns true;

    on the other

    Returns false;

    }

    This works well. If I inserts a row in the parent table and one or more rows in the child table passes validation. But if I get a line inside the parent table and no line of children tables I'm not allowed message in my browser.

    So here's where problem read. Once I'm getting now authorized message, no matter if I insert the new line of Herald, I cannot commit until what I restar my app. Why? Because now, I constantly have this message:

    ORA-02291: integrity constraint (RE. FK_PAR_PAR_ID) violated - key parent not found

    It's like I can't hire the existing parent row I inserted before the child missing line. Why is this happening? I should replace postChanges method and what to put in it?

    Thx a lot

    Yes, you should do it in all cases, but point of my post is - put this code in the method of beforeCommit() of the primary entity. Only you need to do in beforeCommit(), is to count the child related entities.

    In your java master entity impl class, you will have the method which returns a RowIterator with associated children, entities, something like that

    public getChildsEO() {} RowIterator

    return (RowIterator)...;

    }

    then, just call this method in beforeCommit() and see if there is at least a child entity...

    You have a point?

  • Get the parent-child hierarchy of column delimited

    I've been on this forum once before, and someone helped me, so I hope I can get help again!

    4-15-5987');

    Thus, the hierarchy is divided on the hyphen. first parent being 4245, then the next value is-4 (including the hyphen) and what follows is - 1, for example

    CREATE TABLE REGEXTEST
      ( ITEM VARCHAR(20)); 
    
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-1');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-10');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-11');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-12');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-13');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-14');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-15');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-15-59A7');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-15-59D7');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-4-15-59F7');
      INSERT INTO REGEXTEST (ITEM) VALUES ('4245-
    
    

    I have to be able to bind-1, -4, 4245. Perhaps the simplest is to build a new table with a primary key where it is assigned the id of the parent to the child.
    I just can't understand how to divide the individual elements and maintain the hierarchy. As previously mentioned, someone helped me with another part of the problem before where I needed to maintain the entire path of each child with the following query:

    select  nvl(prior item,item) parent,
            nvl2(prior item,item,null) child
      from  REGEXTEST
      connect by substr(item,1,instr(item,'-',-1) - 1) = prior item
      order by child,parent
    
    

    Now, if I could extrapolate that into a new table:

    CREATE TABLE FileHierarchy
    (ItemID INT NOT NULL PRIMARY KEY,
    ItemName varchar(50) NOT NULL,
    ParentID INT NULL);
    
    

    ItemName is the 4245 or - 4 or - 1 (only) - Yes, including the hyphen.

    The ID of the parent-1 would be the ID-4, etc...

    Thank you very much in advance!

    J.F. Larente

    Solution for not having stored the high level:

    SQL > select *.
    regextest 2
    3.

    POINT LEV
    -------------------- ----------
    4245 4
    4245 4-1
    4245 4-10
    4245 4-11
    4245 4-12
    4245 4-13
    4245 4-14
    4245 4-15
    4245 4-15-59 A 7
    4245 4-15-59 D 7
    4245-4-15-59F7

    11 selected lines.

    SQL > with t1 as)
    2. Select item
    regextest 3
    4 Union all the
    5 select distinct substr (item, 1, instr(item,'-',1))
    6 of regextest
    7             ),
    8 t2 as)
    9. select element,
    10 row_number() on id (order by article)
    11 from t1
    12              )
    13. select id,
    14 regexp_substr (rtrim (point,'-'), case level when 1 then ' [^-] + $' other '-[^-] + $' end) child.
    parentID 15 prior id,
    16 regexp_substr (prior rtrim (point,'-'), case level - 1 when 1 then ' [^-] + $' other '-[^-] + $' end) parent
    17 of t2
    beginning 18 with substr(item,-1) = '-'
    19 connect by substr (item, 1, instr(item,'-',-1) - 1) = prior rtrim(item,'-')
    20 and article! point prior =
    21.

    ID PARENTID PARENT CHILD
    ---------- -------------------- ---------- --------------------
    1 4245
    2 -4                            1 4245
    3 -1                            2 -4
    4 -10                           2 -4
    5 -11                           2 -4
    6 -12                           2 -4
    7 -13                           2 -4
    8 -14                           2 -4
    9 -15                           2 -4
    10-59A 7 9-15
    11 59 D 7 9 - 15

    ID PARENTID PARENT CHILD
    ---------- -------------------- ---------- --------------------
    12 59F7 9-15

    12 selected lines.

    SQL >

    SY.

  • parent/child relationship hirarchy

    Hi everyone, consider the sample data

    SELECT LFROM '1TR1Y6', NULL LTO, MID '11ZFDD', '21XHK7' double UNION ALL TID-

    SELECT '1TR1YF' LFROM, LTO NULL, '11ZFDD' MI '21XHK5' TID FROM dual UNION ALL-

    SELECT '1TR1X1' LFROM, LTO NULL, '11ZFDD' MI '21XHK8' TID FROM dual UNION ALL-

    SELECT '1LSZX1' LFROM, LTO NULL, '11ZFDD' MI '1TR1YD' TID FROM dual UNION ALL-

    SELECT LFROM "1LSZWQ", "21XHK7" LTO, MID '11ZFDD', '1TR1Y6' TID FROM dual UNION ALL-

    SELECT LFROM "1LSZX2", "21XHK5" LTO, MID '11ZFDD', '1TR1YF' TID FROM dual UNION ALL-

    SELECT LFROM "1LSZVG", "21XHK8" LTO, MID '11ZFDD', '1TR1X1' TID FROM dual UNION ALL-

    SELECT LFROM "4LSSVG", "21XHK9" LTO "11AAA' MI '1TR1X1' TID double UNION ALL

    SELECT "AAAAA" LFROM, LTO NULL, '11ABB' e, 'CCCCCC' double UNION ALL TID

    SELECT "BATH" LFROM, 'CCCCCC' LTO, MID '11ABB', 'AAAAA' double UNION ALL TID

    some of them have a parent/child releationship. for example, let take rank with LFROM = 1TR1Y6

    1TR1Y6 (lfrom) corresponds to the fifth line with TID 1TR1Y6.  TID 1TR1Y6 LTO COLUMN value corresponds to the first line TID (21XHK7)

    It before these two LINES are IN a parent/child relationship.

    lets take another example.  LINE two WITH LFROM = 1TR1YF matches sixth RANK WITH TID 1TR1YF.  the sixth LINE LTO COLUMN (21XHK5) corresponds to the SECOND TID of LINE.

    Once again the parent child relationship. There are two lines that do not have the relationship of parent/child (ex.  line 8)

    Im trying to write a query that can partition the data in the middle column and find the parent/child relationship. the output of the above data should be

    LTO LFROM MIDDLE TID FLAG

    1TR1Y6 NULL 11ZFDD 21XHK7 1

    1LSZWQ 21XHK7 11ZFDD 1TR1Y6 1

    1TR1YF NULL 11ZFDD 21XHK5 1

    1LSZX2 21XHK5 11ZFDD 1TR1YF 1

    1TR1X1 NULL 11ZFDD 21XHK8 1

    1LSZVG 21XHK8 11ZFDD 1TR1X1 1

    1LSZX1 NULL 11ZFDD 1TR1YD 0

    4LSSVG 21XHK9 11AAA 1TR1X1 0

    ABDELKÉBIR 11ABB CCCCCC NULL 1

    CCCCCC 11ABB AAAAA BATH 1

    For simplicity, I posted the release with parent/child, side by side in the sequence.  the order does not matter as long as the flag column (pull the column) is set to an appropriate value (1 if parent/child, 0 no parent/child)

    the flag column value is derived from column to indicate the parent/child relationship was found.

    I try using lead, the lag function but I have problem of sorting data from parent and child line could come at random order (they are not side by side).

    It is therefore difficult to use lead because you don't know how many lines to carry forward.

    can someone help me write a query that displays the output above

    SELECT T1. LFROM,

    T1. LTO,

    T1. ENVIRONMENT,

    T1. TID,

    (

    SELECT COUNT (*)

    OF TBL T2

    WHERE)

    T2. TID = T1. LFROM

    OR

    T2. LFROM = T1. TID

    )

    AND T2. MI = T1. MID

    ) FLAG

    OF TBL T1

    /

    LTO LFROM MIDDLE TID FLAG
    ------ ------ ------ ------ ----------
    1LSZWQ 21XHK7 11ZFDD 1TR1Y6 1
    1LSZX2 21XHK5 11ZFDD 1TR1YF 1
    1LSZVG 21XHK8 11ZFDD 1TR1X1 1
    CCCCCC 11ABB AAAAA BATH 1
    1TR1X1 11ZFDD 21XHK8 1
    1TR1X1 11ZFDD 21XHK8 1
    1LSZX1 11ZFDD 1TR1YD 0
    1TR1Y6 11ZFDD 21XHK7 1
    ABDELKÉBIR 11ABB CCCCCC 1
    1TR1YF 11ZFDD 21XHK5 1
    4LSSVG 21XHK9 11AAA 1TR1X1 0

    11 selected lines.

    SQL >

    SY.

Maybe you are looking for

  • 10.10.5 pictures not save faces

    Summary of the Hardware/Software: iMac: 21.5, mid 2011 (2.5 GHZ i5), 20 GB of RAM OSX: Yosemite, Version 10.10.5 Photos: Version 1.0.1 (215.65.0) Problem: Impossible to systematically record faces before (last import) or after importation in an album

  • Issue after you create the new partition, Bootcamp expansion

    Hello I hope someone can help with a problem I'm having. I found an old Apple discussion on how to resize a partition, bootcamp, by reducing the size of the OS X partition, then using a Windows based tool to then extend the Bootcamp partition. Big mi

  • Where can I find this disk management to rename my drive letters

    Somehow the drive letter for my drive external hard has changed and I need to restore it.  Where the hell is - this "disk management" that meets all these say to use to restore?  I don't know how to access disk management. I am running Windows XP Hom

  • Downgraded Windows 7 license key

    3 years ago, I got a PC from mesh (which are now passed in the administration.)  About six months ago, I upgraded to Windows 8, then 8.1 (which gave me a new product key.)  It would be good to use this license key on another copy of Windows 7, now th

  • Sync blackBerry Smartphone email with my computer

    When I click on delete (X) on my handheld and I select "on mailbox & Handheld ' why it doesn't delete on my PC and Vice Versa?