Fill the tree with complex external XML file control

Hi all. I've been combing through forums for two days and have not been able to find a solution to my problem. I'm trying to populate a control of the tree with an external xml file, but the xml file is not a simple. It is complex, and I don't know how to get the tree to display these data. I have attached the code. Can someone take a look and let me know how I could get this to work? Thank you!

What does not work?

Complexity of the XML is not, in itself, an issue for the tree.

Also, I recommend using straight XML, unless specifically, you need Collection features.

Tracy

Tags: Flex

Similar Questions

  • XMLList to the external XML file

    Hi all

    I'm new to Flex, but I was impressed with it so far. I was able to create a simple, where things application like navigation trees and the data in the table were populated based on XML stored in tags mx:XMLList inside the main document. To clean things up, I thought that I would like to move the data in external XML files. I copied the data files and verified that the data has always been a single top-level node. Then, noted that mx:XMLList does not support the attribute 'source', so I converted to the use of mx:XML within the application mxml tags. Compiles the application now, but all of the XML hierarchy displayed in the form of a single node, instead of being analyzed in the tree nodes. No idea what I'm missing here? And thanks in advance for the noob easy going. ;-)

    -Josh

    Yet once, answered myself for posterity.

    For the tree data, the top node is implied, so I just had to change the dataProvider to {deviceTree.node}. For the data in the table, it was a little more difficult, where rather to link using a tag, I rather linked to it as a and then created a where the source is specified as the {[id XML]. [node]}. (once again the top node was already implicit)

  • Connection to the external xml file

    How to use an external xml file as a data source for my LiveCycle form?

    I have a xml file on my server which is updated daily by a script. My LiveCycle form is on the server and can be pushed to the client by the click of a button on a web page or similar. Is it possible to have the LiveCycle form refresh its data before being sent to the client, or every day?

    I thought that the burden of form, a JavaScript function could check if the form is on the server, or check if the xml file is there, and if this is the case, update itself, else do nothing.

    I prefer to keep the xml file and the distinct shape that other applications and do scripts use xml file.

    Thank you.

    (1) if the form is used internally on the same network (ie: the xml file is still available over the network to your th) form questionable local files, but it requires advanced script.

    I did it with network drives shared tho. -If you do, I use the two solution

    (2) assuming you are using LC Reader Extensions as well as the form is "all over", not always on the network starting.

    -Expose the XML file through a Web service (if it is not sensitive data)

    -Get the form to query the Web service

    (3) but if you have installed with LiveCycle Forms.

    Use the readXML and how to bind the XML with the form.

  • Polish fonts - ISO 8859-2 (Latin 2) - from the external xml file

    Hello

    I need to import the Polish text in my flashapplication. I load text from an external xml file.
    so far everything I try is unable to display special characters.

    When I encode the text, it works, but it's no choice...


    more than two things: I have to dynamically create the textfield (createTextField();), and the police must be incorporated.

    can someone tell me the solution of this problem?
    any help is appreciated!

    Thank you
    Marcin

    Hello

    here a solution that worked for me:
    I just had to change the language and location settings in windows and flash would take the right code of basic police...

  • Fill the layer with the color

    pse13 I am filling the layer.  The layer has a small rectangle on it and nothing else.  When I fill the layer, it fills the whole canvas, not only the rectangle!  It's used to work!

    1. Go to file > new > empty file. Type w, h and the resolution, & background color. It's the Web.
    2. Set up the fixed size Rectangle tool, enter w & h dimensions of the rectangle
    3. Use the paint bucket tool to fill the rectangle with the color of choice as determined by the foreground color chip.
  • Uncheck the box "Fill the screen with a page at a time"

    Is it possible to put a javascript to turn off the preference "Fill the screen with one page at a time" when entering mode full screen? So that it replaces, the Acrobat or Reader application preferences when the PDF file is opened on the computers of the users.

    All that is supported is documented here: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.768.html

    Unfortunately, what you want is not supported.

  • Write in an external xml file

    OK, so ive been reading on xml and found theres this big thing appeal. appendChild(). that let your add a node to an xml file.

    Here's the catch, I can write in an external xml file, without the need to load it, DIRECTLY through flex?

    or I have to use some php i.e. backend


    Thanks heaps!

    ojk007

    The Flash Player, when it is hosted by a browser, severely limits access to the resources of the host computer. In other words, you cannot read and write files. If the XML file resides on the server, then you can use the code server-side (e.g. PHP) and edit the file, or you can load the XML file into your Flex application on the client computer, change it, then refer to something that can write the file.

  • External XML file of a chart

    I'm new to Flex, but using samples and documentation, I was able to create a simple chart that uses an external xml file for the data source is.

    I'm not sure how to get to the next step, i.e.:
    Having the table listening to all the changes in the xml file and update running.

    Can someone point me samples or documents that can help out me?

    Thank you

    source = 'path' is a * compile time * operation, so the XML is in fact embedded in the swf file.

    Loading the runtime, then use HTTPService.

    In addition, do not use mx: Model and if you are using HTTPService, be sure to set resultFormat = "e4x".

    Search the archives if you want to know why and read more details and examples.

    Tracy

  • I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    Trying to convert to the. WMV format:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How to fill the canvas with lines

    < mx:Canvas id = "b1" x = "10" y = "10" height = "40" width = "300" borderStyle = "solid" borderColor = "black" / >

    When I want to draw lines with difference of 15 pixels to fill the entire canvas I wrote the following

    for (var i: int = b1.x + 15; i < b1.x + b1.width; i = i + 15)
    {
    var line1:UIComponent = new UIComponent();
    var lineThickness1:Number = 1;
    var lineColor1:Number = 0 x 000000;
    var lineAlpha1:Number = 1;
    LINE1. Graphics.LineStyle (lineThickness1, lineColor1, lineAlpha1);
    LINE1. Graphics.MoveTo (i, B1.y);
    LINE1. Graphics.LineTo (i, B1.y + B1. Height);
    this.addChild (line1);
    }

    It works very well

    LLY,

    < mx:Canvas id = "b4" x = "600" y = "200" height = "60" width = "300" borderStyle = "solid" borderColor = rotation "black" = "40" / >

    I have the canvas above with the "b4" id only difference is that this canvas rotation

    How to fill the canvas with lines that I just did above?

    Hope this code will help you,

    for(var i: int = 15; i < b4.width; i = i + 15) {
         var line1: UIComponent = new UIComponent();
         var lineThickness1: Number = 1;
         var lineColor1: Number = 0x000000;
         var lineAlpha1: Number = 1;
         line1.graphics.lineStyle(lineThickness1, lineColor1, lineAlpha1);
         line1.graphics.moveTo(i, 0);
         line1.graphics.lineTo(i, b4.height - 1);
         //Add line in canvas instead of main container
         b4.addChild(line1);
    }
    
    
    
  • How to fill the tree?

    Hello

    The following procedure is called from wnfi trigger but no data

    and I have no other code to call I'm wrong?

    I want 2 fill the tree, but the shape is empty!

    PROCEDURE PR_TREE IS
    rgTree RECORDGROUP;
    vcQuery VARCHAR2 (12000);

    nStatus NUMBER;
    itTree ITEM: = FIND_ITEM ("BL_TREE.IT_TREE");
    BEGIN
    rgTree: = FIND_GROUP ("RG_TREE");
    -Clear tree
    Ftree.DELETE_TREE_NODE (itTree, Ftree.ROOT_NODE);

    rgTree: = Create_Group_From_Query ('rgTree',
    "Select-1, level, ACCOUNT_NAME, NULL, to_char (ACCOUNT_ID) '.
    |' of ' GL_ACCOUNTS |
    "connect by prior ACCOUNT_ID = ACCOUNT_ID_SYS_C0011057 ' |
    "Start by ACCOUNT_ID_SYS_C0011057 IS NULL.
    ORDER BY ACCOUNT_ID');
    nStatus: = Populate_Group (rgTree);
    Ftree.Set_Tree_Property (itTree, Ftree.RECORD_GROUP, rgTree);


    -Repopulating Record-Group
    -nStatus: = POPULATE_GROUP (rgTree);
    -Repopulating tree
    Ftree.POPULATE_TREE (itTree);


    END;


    -------------------------------------------------------------------------------------------

    PLS, help is needed

    Kind regards

    Abdetu...

    Are you sure you are using the threshold from which I've added?

    FTREE.POPULATE_TREE(itTree);
    

    and check the query if it retrieves results or not?

    -Clément

  • to fill the gaps with value of lead and the delay and make average and the gap between earned

    Thanks in advance

    I have table as below
    ID          TYPE     NUM     NAME     BEG_MP     END_MP     VALUE
    10001103N     3     1190001     WST     0.000     0.220     
    10001103N     3     1190002     WST     0.220     0.440     
    10001103N     3     1190003     WST     0.440     0.820     12800
    10001103N     3     1190003     WST     0.820     1.180     12800
    10001103N     3     1190004     WST     1.180     1.220     
    10001103N     3     1190004     WST     1.220     1.300     
    10001103N     3     1190005     WST     1.300     1.420     14800
    10001103N     3     1190005     WST     1.420     1.550     14800
    10001103N     3     1190006     WST     1.550     2.030     
    10001103N     3     1190006     WST     2.030     2.660     
    10001103N     3     1190007     WST     2.660     2.780     
    What I need is to fill the gaps with value of lead and the delay and make average and the gap between the values
    ID          TYPE     NUM     NAME     BEG_MP     END_MP     VALUE
    10001103N     3     1190001     WST     0.000     0.220     12800 ---> Lag value
    10001103N     3     1190002     WST     0.220     0.440     12800 ---> Lag Value
    10001103N     3     1190003     WST     0.440     0.820     12800
    10001103N     3     1190003     WST     0.820     1.180     12800
    10001103N     3     1190004     WST     1.180     1.220     13800 ---> Avg(12800,14800)
    10001103N     3     1190004     WST     1.220     1.300     13800 ---> Avg(12800,14800)
    10001103N     3     1190005     WST     1.300     1.420     14800
    10001103N     3     1190005     WST     1.420     1.550     14800
    10001103N     3     1190006     WST     1.550     2.030     14800 ---> Lead Value
    10001103N     3     1190006     WST     2.030     2.660     14800 ---> Lead Value
    10001103N     3     1190007     WST     2.660     2.780     14800 ---> Lead Value
    create table AVG_TABLE
    (
      ID     VARCHAR2(20),
      TYPE   NUMBER,
      NUM    NUMBER,
      NAME   VARCHAR2(10),
      VALUE  NUMBER,
      BEG_MP NUMBER(6,3),
      END_MP NUMBER(6,3)
    )
    ;
    
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190001, 'WST', null, 0, .22);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190002, 'WST', null, .22, .44);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190003, 'WST', 12800, .44, .82);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190003, 'WST', 12800, .82, 1.18);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190004, 'WST', null, 1.18, 1.22);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190004, 'WST', null, 1.22, 1.3);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190005, 'WST', 14800, 1.3, 1.42);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190005, 'WST', 14800, 1.42, 1.55);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190006, 'WST', null, 1.55, 2.03);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190006, 'WST', null, 2.03, 2.66);
    insert into AVG_TABLE (ID, TYPE, NUM, NAME, VALUE, BEG_MP, END_MP)
    values ('10001103N', 3, 1190007, 'WST', null, 2.66, 2.78);
    commit;

    Hello

    Use LEAD and LAG when you know exactly how far is the target line (for example, if you know the desired value is on the next row).
    If you don't know exactly how far is the target line, then FIRST_VALUE and LAST_VALUE are more likely to be useful.

    WITH     got_neighbors     AS
    (
         SELECT     avg_table.*
         ,     LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp)          AS prev_value
         ,     LAST_VALUE (value IGNORE NULLS) OVER (ORDER BY beg_mp DESC)     AS next_value
         FROM     avg_table
    )
    SELECT       id, type, num, name, beg_mp, end_mp
    ,       COALESCE ( value
                 , ( NVL (prev_value, next_value)
                   + NVL (next_value, prev_value)
                   ) / 2
                 )     AS value
    FROM       got_neighbors
    ORDER BY  beg_mp to f
    ;
    

    Riedelme is correct: LAG LEAD (as well as FIRST_VALUE and LAST_VALUE) can return only the values that are there (or that you give as default values). This means that you can not solve this problem with these functions alone; you need something else (as NVL, above) to provide value when the function does not find it.

  • How to provide the user with a list of files to download...

    Hai...

    I downloaded the file correctly... now, you should download the file... which has been downloaded... for that we have implemnted the query in the form...

    Select max (id) of APEX_APPLICATION_FILES , later transferred record here will be retrieved and shown.

    Now, we want to provide the user with a list of files to download...Dat, is that it should be on the list files that are no dat, he must select a single file to download?
    can u please tell me how to do...



    David

    Hi David,

    The reason why I proposed to do this is to display date CREATED_ON as you want in the report. If you do not do this, the date can be displayed in a format that you don't like. You don't have to do this bit, if you do not want.

    For example, if you do not set the size, the date may appear as:

    6 NOVEMBER 08

    But, if you set the format, you can get:

    2008-06-11 12:13:15

    It is up to you.

    Andy

  • Problem with loading multiple external xml files

    I have a table named 'source', which consists of names of files external xml, the content of which I'm loading in another table called 'content '. I tried with the following text:

    ----------------------------------------------------------------------------------------
    for (i = 0; i < source.length; i ++) {}
    XML_URL = "' http://localhost/temp/ ' + source ;"
    myXMLURL = new URLRequest (XML_URL);
    myLoader = new URLLoader (myXMLURL);
    myLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    }

    function xmlLoaded(evt:Event):void {}
    Content.push (myLoader.Data);
    }
    ---------------------------------------------------------------------------------------

    The problem is that in this way, I get that content of the last xml file and other items ' content ' are 'undefined '. Anyone know the solution to this problem or maybe another way to do this?

    Thanks in advance

    I tested the following with two xml files in the same folder (I would try the same thing) and put their names in the table source. Create two dummy xml for the test files.
    Here is my exact code (I've changed, I have one because it's italicized here in the forums):

    var content: Array = new Array();
    var source: Array = new Array ("media1.xml", "media2.xml");
    for (var a source) {}
    var XML_URL = ' "+ source [a];
    var myXMLURL = new URLRequest (XML_URL);
    var myLoader = new URLLoader ();
    myLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    myLoader.load (myXMLURL);
    }

    function xmlLoaded(evt:Event):void {}
    Content.push (evt. Target.Data);
    if(Content.Length ==source.) Length)
    TR();
    }

    function tr() {}
    trace (content);
    }

  • Possible error with module GWT.xml file. The value of time compilation agent user (ie6) does not match the value of user.agent (ie8) run time

    Hi there... How can I sort this problem as this message looks back constantly on google Account... ERROR POSSIBLE WITH GWT. The value of time compilation agent MODULE XML FILE user (ie6) does not match the value of user.agent (ie8) run time

    Hello nEve Adam,.

    Thanks for the return of the response.  Below, I've added some links Google support on this issue.  I hope this helps.

    ERROR: Problem Possible with your *. GWT.XML file module. The value of compile time user.agent (opera) does not match

    http://www.Google.com/support/forum/p/blogger/thread?TID=2d6d9bd1326a07c4&hl=en

    In addition,

    Message from Web page

    http://social.technet.Microsoft.com/forums/en-us/ieitprocurrentver/thread/53194559-306a-4ffc-a614-4bac817f178d

Maybe you are looking for