How to populate a tree from .aspx file?

Hi,
I'm very new to flex. I have a .aspx file which has xml populated in it. I would like to populate the tree based on the values of the .aspx file. Here is my code which i have tried doing this functionality but it couldn't worked out. Could anyone help me out to resolve this problem.
This is my sample aspx file:
Sample.aspx:
<?xml version="1.0" encoding="utf-8"?>
<myTree label="Main Root">
<node label="Root">
<node label="Folder a">
<node label="item 1 a"/>
</node>
<node label="Folder b">
<node label="item 1 b"/>
<node label="item 2 b"/>
</node>
<node label="Folder c">
<node label="item 1 c"/>
<node label="item 2 c"/>
</node>
<node label="Folder d">
<node label="item 1 d"/>
<node label="item 2 d"/>
</node>
</node>
</myTree>
Here is my mxml file which i was trying:
TreefromXml.mxml:
<?xml version="1.0" encoding="utf-8"?><mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="XmlRpc.send()">
<mx:Script>
<![CDATA[
importmx.collections.ArrayCollection;
importmx.rpc.events.FaultEvent;
importmx.rpc.events.ResultEvent;
importmx.controls.Alert;
public var XmlNode:XML=newXML();
public function HandleXml(event:ResultEvent):void
XmlNode= new XML(event.result.myTree.node);
tree1.dataProvider=event.result.myTree.node; 
public function HandleFault(event:FaultEvent):void
Alert.show(event.fault.faultString, "Error"
]]>
</mx:Script>
<mx:HTTPService id="XmlRpc" url="Sample.aspx" result="HandleXml(event)" fault="HandleFault(event)"> 
</mx:HTTPService>
<mx:Panel id="panel1" width="400" height="200"> 
<mx:Label id="label1" text="Sample Label" /> 
<mx:Tree id="tree1" labelField="@label"> 
</mx:Tree> 
</mx:Panel>

Hi Wolfman,
I do not understand what you are trying to say. My requirement is to fetch xml from .aspxfile and then use it to populate the tree structure in flex. It would be great if you could share me with the piece of code which suites my requirement. Thanks
Regards,
Saravana

Similar Messages

  • How to import a logo from flat file to SAP in SMARTFORM.

    how to import a logo from flat file to SAP in SMARTFORM. i need to know whether TIFF format is used and also the full steps.
    Thanks,

    Hi,
    You can not directly use a logo from a file into a Smart form. First you will have to upload it to SAP. This has to be done only once. Once it is imported into SAP then you can use it in smart form. To import a logo to SAP, goto SE78. Open the tree under GRAPHICS. Select the file type and click on the Import (first button on the toolbar, just before delete button). Select the logo file and give it some appropriate name along with description. Select appropriate type of the image and click Continue. Your logo will be uploaded into SAP from a file. Now in your smartform, Create a Graphic Node, give the name of the logo along with other properties. In this way you can import a logo from a flat file into SAP and consequently in a smart form.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • How to load the data from .csv file to oracle table???

    Hi,
    I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
    Thanks in advance

    981145 wrote:
    Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
    the command is
    sqlldrType it and see if you have it installed.
    Have a look also at the FAQ link posted by Marwin.
    There are plenty of examples also on the web.
    Regards.
    Al

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • How to remove a folder from claud files

    how to remove a folder from claud files?

    Folder (and file) deletion is a two-part process. First you Archive the file from the Files page at https://creative.adobe.com/files, or by deleting it from the Creative Cloud Files folder on your computer. Then you Permanently Delete the folder from the Archive at https://creative.adobe.com/archive.
    Help article: Creative Cloud Help | Manage and Sync files

  • How to Export multiple photos from pdf files?.

    Good day.
    How to Export multiple photos from pdf files?.
    Thanks.

    Hello
    how to reach from file menu ?.
    Running Adobe reader 9 version 9.3.0
    Thanks again.

  • How to exclude schema name from exported files (PL SQL Developer)

    Dear all,
    Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
    Thank you in advance,
    Kindest regards,
    Dragana

    In the meantime, I have found the answer on my previous question:
    Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
    Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
    Hope that this will be useful info for others.
    Dragana

  • How to Populate the Dropdown from the xml file ?

    Hi,
    According to my requirement, Drop down has to be populated in a form, on selecting an element in the first drop down list, corresponding second drop down values has to be loaded dynamically.
    I am using the ReferenceData file, which consists of the Dropdown list values in the form of Key,Value pair. I can able to populate one drop down,but I don't know how to populate the second dropdown dynamically.
    can any one please help me to finish this task.

    Thanxs john.
    My requirement is onChange of a value from the first drop down, particular values needs to load in the second drop down. Values that needs to pull are designed in XML Object as Map entries Key,Pair Values.
    I already did all the things, what you have told.But,I don't know How to populate the second drop down, and where to write the condition.
    If u don't mind can u send me the sample code to check the condition.

  • Populate the database from a file

    Hi guys,
    I have to populate an Oracle database using a java standalone application. The application gets the data from a file and copies them into the database. I don't know how to structure the entire thing and in which layer (view or model) i have to implement this functionality.
    thank's a lot,
    christian

    either you configure FOP to use a SAX Parser that supports Cp1251 or you encode your XML data to UTF-8.
    we flawlessly generate Greek PDF documents out of data selected from Oracle 8.1 by using UTF-8.

  • How to populate the Tree having Directories only like Explorer

    Hello,
    Can u guys tell me how to populate the File Structure Tree which is having directories only like Explorer
    Thanx in advance !!
    Vijay Gupta

    On key-exeqry you have to program.  Delete all other trigger codings for checking your condition.
    It dint work on key-exeqry.
    I tried key-exeqry on form trigger, block (enqacmdtl) and also on field(:enqacmdtl.enqno) , but none of them worked.
    It did not display the message.
    I have a 'PUSH-BUTTON:EXEC_QUERY.
    For EXEC_QUERY, Trigger : WHEN_BUTTON_PRESSED;
    I added the following code:
    if to_number(substr(:enqacmdtl.enqno,1,4))<to_number(to_char(add_months(sysdate,-12),'YYYY')) then
         message('The Rating is not present for the present year and the previous year');message(' ',no_acknowledge);
         raise form_trigger_failure;
    else
         execute_query;
    end if;
    It is working fine and the message is being displayed.
    But again I have a new problem and that is;
    On the field :enqacmdtl.enqno, when i enter the '2013%' and press 'EXEC_QUERY', it works fine.
    but when i enter '2006%' and press 'EXEC_QUERY', it shows the following error
    FRM-50016: Legal characters are 0-9 - +E. It does not display the message also.
    but when i enter the complete number, '2006580002', then it works fine , that is it displays the message (The Rating is not present for the present year and the previous year).
    The problem is because of '%', only when i put in the restricted data (which does not satisfy where condition).
    How do i solve this?
    Thank You Priyasagi.

  • How to create ICon/Cursor from pdf files

         I was able to create ICon from jpg file without problem but I couldn't create ICon from pdf files.
    Here my code:
    var myDoc = app.newDoc();
    myDoc.importIcon("myIcon"); // it worked when I chose a jpeg image, but it didn't
    //when chose a pdf file.
    icon = myDoc.getIcon("myIcon");
    oIcon = util.iconStreamFromIcon(icon);  
    myDoc.closeDoc(true);
    app.addToolButton({
                   cName: "myButtoon",
                   oIcon: oIcon,
                   cExec: "app.alert('Someone pressed me!')",
                   cTooltext: "Push Me!",
                   cEnable: true,     
                   nPos: 4
       //app.removeToolButton("myButtoon");
    My goal is to create buttons which have icons from a pdf file (stamp) and when user click on these buttons, the cursors become the icon . And then, when user click on the document, the iCon will be showed in the document. The point is: is there anyway to create icons/cursors/stamps from one pdf file. Because the stamp is changeable, when user changes the color/shape of the pdf file, the icons/cursors/stamps will automatically change
    What kind of pdf format do I have to use?
    I used the sample "SignHere.pdf" in stamps folder of Acrobat but it didn't work.
    Thanks.

    The SDK has all the information - but certainly there are only samples for those common actions that users have been doing for years.  Most developers don't recreate stuff already present in the application - such as the Stamp plugin - so we don't have samples of such things.
    But all the pieces you need are present in the SDK - it's just necessary obvious.  You will need to learn about the details of how the plugin APIs work to create the toolbars and toolbuttons, and then how to handle cursors.  You will then need to learn about PDF details in order to be able to take an existing PDF, potentially modify it (eg. Change the color(s)) and then place it onto another PDF.  
    The methods you listed are from JavaScript - there are alternative methods for plugins, such as the AVConversion APIs.

Maybe you are looking for

  • Why won't my credit card info stay in the system?

    I have put in all of the info off my credit card multiple times and then when I go to buy a game it says I need to visit apple/iTunes support. When I go to make sure all the credit card info is correct it hasn't saved my security code on the back of

  • HT1657 Movie rental downloaded but won't play

    I just rented a movie from iTunes. My iTunes tells me the movie is downloaded and ready to view, but the movie keeps freewing at the same point, 1 minute and 55 seconds in. I've restarted iTunes and that hasn't helped. I have a 1 year old HP computer

  • Attach to Email - more than once?

    In Acrboat X Pro, if you want to send a document via email, you go through "Share".  This then sets you up to send the current document via email.  If you want to do this twice, the document name is gone though, and unless you know the entire path st

  • Difference between AT NEW ..... and ON CHANGE events

    difference between AT NEW and ON Change events.. Thanks

  • Sales order stock not showing in stock overview(MMBE)

    Hi, I have a MTO scenario where against the sales order production order has been created. Production order has been delivered & the material document showing 101E movement type. After that the material has been transfered to another storage location