Displaying Multiple XML Data on List Item List

Hi there..
Is it possible to display multiple XML Data on List Item List. I mean like the example below.
and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
Thank you very much...

Hi Ann,
Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
Hope that helps you.

Similar Messages

  • Wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

    Following code :
    <!DOCTYPE html>
    <style type="text/css">
    div {
    display: block;
    margin-left: 2em;
    span {
    display: list-item;
    list-style-type: decimal;
    </style>
    &lt;div>
    &lt;span>first&lt;/span>
    &lt;span>second&lt;/span>
    &lt;span>third&lt;/span>
    &lt;/div>
    Displays as :
    0. first
    0. second
    0. third
    while looking fine in other browsers (checked IE7, chrome, opera, safari...)

    updated code snap...

  • How to Filter E4x Xml data in a tile list?

    Hello!
    I'm simply trying to use a search box for some xml data I have in a tile list. Can anyone point me in the right direction?
    Here's the tile list:
    <mx:HTTPService id="GetXmlService"
    resultFormat="e4x"         
    fault="getXMLFault(event);"
    result="getXMLResult(event);"
    showBusyCursor="true" /> 
    <mx:TileList id="tileList"
    dataProvider="{GetXmlService.lastResult.image}"
    itemRenderer="CustomItemRenderer"
    columnCount="4"
    columnWidth="125"
    rowCount="2"
    rowHeight="150"
    themeColor="haloSilver"
    verticalScrollPolicy="on"
    itemClick="tileList_itemClick(event);" backgroundAlpha="0" height="487" borderStyle="none" y="30" right="10" left="10"/>
    And here's the XML Data:
    <?xml version="1.0"?>
    <gallery>
    <image username="People1"  rating="5" insession="yes" />
    </gallery>

    hi,
    This may help you
    http://gumbo.flashhub.net/filtering/  source included....(ignore extra file in the source, i forgot to clean the project before I built it).
    basically all I have done is have a list with the xml dataprovider, you can do an incremental search on the list using the xmllistcollection filter function
    http://flashhub.net/filter/ source included.......
    this is using a filter to refine a tilelist by a category.
    David

  • Filtering multiple-XML data model with parameters

    I have a data model that consists of a concatenation of 9 separate RSS feeds (weather information from 9 different cities coming from http://www.weather.gov/data/current_obs/????.xml, where ???? is the National Weather Service station ID). All of the feeds have exactly the same format. When I view the raw XML data, I see 9 different values of station_id and of every other tag. So the XML data looks fine. Now I'd like to be able to select one city at a time in an LOV dropdown.
    I've created a static LOV called Cities with the list of the 9 station ID's. I've created a parameter called city that is tied to that LOV.
    What I can't figure out is how to tie the selected city to the station_id field in the concatenated XML dataset.
    I've tied adding a parameter to each rss data set, entering each city's 4-character station ID into its Parameter Name field, and of course choosing city as the parameter. For example, the Parameters section for the Amarillo rss feed would show a Name of KAMA and a Value (Parameter) of city. While this seems logical, selecting the parameter on the View screen doesn't change the display.
    Is there a way to accomplish this?

    Ahhh, post as in "e-mail". DOH!
    E-mailed to you.

  • XMLdatasets: How to combine multiple xml data sources??

    What I'm trying to do (without any results so far...) is to combine data from two different xml sources.
    I have one source with a list of cultural events (agenda.xml) and another with a list of contacts (contacts.xml). Each source has a column with a contact name <co_name>.
    I use a MasterDetail layout. When you choose an event in the MasterContainer (agenda.xml), the DetailContainer should display not only details from agenda.xml but when the name <co_name> in agenda.xml MATCH exactly a name <co_name> in contacts.xml, the DetailContainer also display the telephone number <co_phone> from contact.xml.
    I will put my code down here, I hope somebody can help me find out what I'm doing wrong. (I tried something with "getdata" but obviously, it doesn't works...)
    Thank you very much in advance!!!!!!
    Véro
    FIRST DATATSET: agenda.xml
    <events>
    <event>
        <ev_title>Title event 1</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 2</ev_title>
        <co_name>marc</co_name>
    </event>
    <event>
        <ev_title>Title event 3</ev_title>
        <co_name>vero</co_name>
    </event>
    <event>
        <ev_title>Title event 4</ev_title>
        <co_name>marc</co_name>
    </event>   
    </events>
    SECOND DATASET: contacts.xml
    <contacts>
    <contact>
        <co_name>marc</co_name>
        <co_phone>123 phone of marc</co_phone>
    </contact>
    <contact>
        <co_name>vero</co_name>
        <co_phone>456 phone of vero</co_phone>
    </contact>
    </contacts>
    HTML DOCUMENT
    <html>
    <head>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var dsAgenda = new Spry.Data.XMLDataSet("agenda.xml", "events/event");
    </script>
    <script type="text/javascript">
    var dsContacts = new Spry.Data.XMLDataSet("contacts.xml", "contacts/contact");
    function matchTheName() {
    var rows = dsContacts.getData();
    for (var i = 0; i < rows.length; i++)
      if (rows[i]["co_name"] == "{dsAgenda::co_name}")
        return rows[i]["dsContacts::co_name"];
    </script>
    </head>
    <body>
        <div class="MasterDetail">
            <div spry:region="dsAgenda" class="MasterContainer">
                <div class="MasterColumn" spry:repeat="dsAgenda" spry:setrow="dsAgenda" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
                    <div>{ev_title}</div>
                    <div>{co_name}</div>
                </div>
            </div>
            <div spry:detailregion="dsAgenda dsContacts" class="DetailContainer">
                <div class="DetailColumnTitle">{dsAgenda::ev_title}</div>
                <div class="DetailColumn">{dsAgenda::co_name}</div>
                <div spry:if="'{dsAgenda::co_name}' == '{dsContacts::co_name}'" class="DetailColumn">{dsContacts::co_phone}</div>
            </div>
        </div> 
    </body>
    </html>

    create a new empty SpryDataSet.
    var dsAll = new Spry.Data.DataSet(); // new base dataset
    on your existing datasets, add onPostLoad observers, this are events that will be notified once the datasets has been loaded.
    var default_obs = {
         onPostLoad: function(){
              // when both datasets are loaded, call out init fn
             if( ds1.getData() && ds2.getData() ){
                   init();
    Than we add it both datasets:
    ds1.addObserver( default_obs ); // add the observer object to the datasets
    ds2.addObserver( default_obs );
    Now they will both call the init function when both the datasets has been loaded. The init function will create the actual new dataset. The data in the SpryDataSet is basically just an array with objects. And Spry has a method that loads an array in to the datasets.setDataFromArray
    We are going to use that function to construct a new dataset:
    function init(){
         if( dsAll.getData() ){
              return; // we already have data in our dsAll dataset, so no use to do it all over again
         var source = ds1.getData();
         var length = source.length;
         var result = [];
         for( var i = 0; i < length; i++ ){
              var matched_row = ds2.findRowsWithColumnValues({id: source[i]['@id']}); // checks if ds2. has a column with id: value
              if( matched_row ){
                   var row = result[ result.length ];
                   row = source[i];
                   Spry.Utils.setOptions( row, matched_row ); // includes the matched_row object inside the new row object
         dsAll.setDataFromArray( result ); // set the new array as data
    Something like should be needed to create it..

  • Approved Supplier List - Item list update in SRM 7.0

    Hello,
    I have a custom screen from where supplier adds the product category themself. Now my question is - If the supplier adds any product category, it should be added in the approved supplier list. If he deletes any product category it should be deleted. We have FM BBP_PD_AVL_UPDATE to do this job. but it not working fine. Even I am not sure whether i am using it properly or not. I have initially added the Del indicator and if I remove the Active indicator it gives an error message -"Status and active flag in one item do not match" . Can any one give some sample code or any other option to do this functionality.
    Thanks
    Abhi
    Edited by: Abhishek Bansiwala on Oct 6, 2010 1:27 PM

    Hi All,
    Below is the sample code to update the item list of Approved Supplier list number.
    Call Function module -  'BBP_PD_AVL_STATUS_CHANGE' before the FM 'BBP_PD_AVL_UPDATE'.
    Code -
          CALL FUNCTION 'BBP_PD_AVL_RESET_BUFFER'.
    ****Change Item status
    ****Get Item details based on Object Id
      CALL FUNCTION 'BBP_PD_AVL_GETDETAIL'
        EXPORTING
          i_guid          = wa_sup_list-guid
          i_object_id     = wa_sup_list-object_id "object id or supplier list number whose item list need to be updated
          i_with_itemdata = 'X'
        IMPORTING
          e_header        = ls_avl_header
        TABLES
          e_item          = it_avl_item
          e_partner       = it_avl_partner
          e_orgdata       = it_avl_orgdata.
    ****Update the partner list
          MOVE-CORRESPONDING ls_avl_header TO ls_avl_header1.
    ****Fill item list
          APPEND LINES OF it_avl_item TO it_avl_item1.
          READ TABLE it_avl_item1 INTO wa_avl_item1 WITH KEY guid = wa_avl_partner-p_guid.
          wa_avl_item1-del_ind = 'X'.
          wa_avl_item1-itm_released = ' '.
          MODIFY it_avl_item1 FROM wa_avl_item1 TRANSPORTING del_ind itm_released WHERE guid = wa_avl_partner-p_guid.
    ****Fill partner list
          APPEND LINES OF it_avl_partner TO it_avl_partner1.
          CALL FUNCTION 'BBP_PD_AVL_STATUS_CHANGE'
            EXPORTING
              iv_item_guid = wa_avl_item1-guid  " Item guid for which we are updating
              iv_activity  = 'ITIN'     " ITIN for Delete line item, ITAC for Adding line item
            TABLES
              et_messages  = it_mess  "message returned
            CHANGING
              ev_changed   = it_xfeld.  "updated if the status is changed
            CALL FUNCTION 'BBP_PD_AVL_UPDATE'
              EXPORTING
                i_header   = ls_avl_header1  "header detail
                i_save     = 'X'
              IMPORTING
                e_changed  = v_field " set if the avl is updated
              TABLES
                i_item     = it_avl_item1 "pass all existing line item and change the line item which needs to be updated
                i_partner  = it_avl_partner1 " pass all partners as it is
                i_orgdata  = it_avl_orgdata " pass org data as it is
                e_messages = it_message1.  "returning message
            IF v_field IS NOT INITIAL.
              CALL FUNCTION 'BBP_PD_AVL_SAVE'
                EXPORTING
                  iv_header_guid = ls_avl_header1-guid.
              COMMIT WORK AND WAIT.
            Endif.
    Let me now if you have any issues.
    Thanks
    Abhi

  • Multiple XML data sets

    Hi
    I want to create multiple XML datasets on one page. For
    example: 2 queries (php,mysql), 2 results. Then on the page where
    you define the datasets you normally add this:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    //-->
    </script>
    Now, this works perfectly, but how can i add multiple
    datasets, for example:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    var dsEmployees2 = new Spry.Data.XMLDataSet("export.php",
    "company2/employee2");
    //-->
    Once i add the second dataset, only the first one displays.
    Anybody have any ideas?
    Thanks
    </script>

    Ok, here is the code that gets the data and exports it to
    XML:
    Query 1:
    =============================
    mysql_select_db($database_conn_export, $conn_export);
    $query_rsEmployees = "SELECT * FROM employees_emp";
    $rsEmployees = mysql_query($query_rsEmployees, $conn_export)
    or die(mysql_error());
    $row_rsEmployees = mysql_fetch_assoc($rsEmployees);
    $totalRows_rsEmployees = mysql_num_rows($rsEmployees);
    // Begin XMLExport rsEmployees
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($rsEmployees);
    $xmlExportObj->addColumn("firstname_emp", "firstname");
    $xmlExportObj->addColumn("lastname_emp", "lastname");
    $xmlExportObj->addColumn("address_emp", "address");
    $xmlExportObj->addColumn("salary_emp", "salary");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("company");
    $xmlExportObj->setRowNode("employee");
    $xmlExportObj->Execute();
    // End XMLExport rsEmployees
    =============================
    Query 2:
    =============================
    =============================
    mysql_select_db($database_data_one, $data_one);
    $query_mem_details = "SELECT * FROM wherever where
    mem='$mem_number'";
    $mem_details = mysql_query($query_mem_details, $data_one) or
    die(mysql_error());
    $row_mem_details = mysql_fetch_assoc($mem_details);
    $totalRows_mem_details = mysql_num_rows($mem_details);
    // Begin XMLExport Member Details
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($mem_details);
    $xmlExportObj->addColumn("firstname", "firstname");
    $xmlExportObj->addColumn("lastname", "lastname");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("Member");
    $xmlExportObj->setRowNode("Details");
    $xmlExportObj->Execute();
    // End XMLExport Member Details
    =============================
    And here is the page that calls these two datasets:
    <script type="text/javascript">
    <!--
    var dsEmployees = new Spry.Data.XMLDataSet("export.php",
    "company/employee");
    var mem_details = new Spry.Data.XMLDataSet("export.php",
    "Member/Details");
    //-->
    And only the first one appears.
    </script>

  • Re-display repeating XML data in dynamic form

    I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
    Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
    Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
    Any ideas or suggestions would be appreciated.
    Thanks,
    Chad

    That code also produces text in the textfield.  What "specific parts" are you trying to display?
    textfield.text = (xml.bar[0].text());
    textfield.text = (xml.bar[1].text());

  • Displaying Specific xml data.

    Hi there,
    I have a database exporting stock detail as xml data.  I've been using spry to format.
    What I was wondering, is it possible to filter to display only certain data?
    My xml data contains electrical products. Can I filter to only display certain products?
    For example I only want to display when Product type is Fridge and Brand is BEKO.
    Product type, Brand, Description, Price
    Sorry, but I'm really stuck.  I can't work out how to do it!
    Many thanks,
    Martin

    The xml contains full details for anywhere between 70 to 100 products.  I've pasted the fields in below.  Does the entire xml have to load before it can filter?  If so I might need to look at the xml output.  I only want the user to be able to see specifc products depending on the page they are on.  So if they navigate Television/Panasonic the spry only displays those products.
    Thanks for your advice so far.
    {@BulletPoints}
    {@ClearanceItem}
    {@Colour1}
    {@Group1}
    {@Group2}
    {@Group3}
    {@Image}
    {@LongDesc}
    {@Make}
    {@ManufactureGuarantee}
    {@ModelNo}
    {@NewItem}
    {@OldPrice}
    {@PackQty}
    {@SellingPrice}
    {@ShortDesc}
    {@SpecialOffer}

  • Problem with multiple XML data sources

    Hi there,
    I have a template (i'm using XML publisher). I need to use 2 different XML data files in the same template, but i couldn't find any way of doing so. Can somebody help me with this issue please? You obviously cannot load 2 XML Data sources in the same template.
    Thanks and Regards,
    Luke

    Is your xml stored some where,
    then
    Create datatemplate and use the xml as datasource.
    You can create it using the following sysntax
    <dataTemplate name="Employee" description="L" version="1.0">
    <dataQuery>
    <xml name="xml_emp" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept_employee.xml</url>
    </xml>
    <xml name="xml_dept" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept.xml</url>
    </xml>
    </dataQuery>
    <dataStructure>
    <group name="EMP" source="empxml">
    <element name="NAME" value="ENAME"/>
    your element here
    </group>     
    <group name="DEPT" source="xm_DEPTl">
    <element name="DNAME" value="DPTNAME"/>
    your element from 2nd xml here
    </group>     
    </dataStructure>
    </dataTemplate>
    Now your two xml source will become single source for the report.

  • How do I display multiple recipients in the Sent Mail list view???

    In the list of sent mails, only one name (the first recipient) shows up in the "to" column. I would like to show as many names as there is room for, and not have to open the message itself to see multiple intended recipients.
    Other email clients do this as the default, but in Mail I just can't find the setting for how many names to display in that column.
    Help!!!!

    Terence,
    Thanks for the information.  Although this allowed me to open multiple windows, they are all show in a format too small (large thumb nails) to use.  I'm looking for a way to do a "split-window" function where two windows are shown (at the same time) larger enough to move between the windows and perform functions such as copy, paste, edit, or drag data from one to the other.
    Thanks

  • ISU FICA: Fetching Key date based open item list

    Hi,
    Our production system has a setting to kill SELECT query if it’s running for more than 12 hours without any updates.
    We want to fetch all open items from DFKKOP table for any given date (could be a past date), company code, business area and reconciliation account. We tried fetching this list using SAP report RFKKOP03 and also by writing custom SELECT query however because of large volume of DFKKOP table in our system, none of the report is getting completed within 12 hours and hence getting terminated by system.
    It would be helpful if anyone can suggest us any other option to fetch the list of open items on any given key date.
    Thanks,
    Amol

    Amol,
    You can use transaction FPO4P. It is run in parallel mode and you can get open items by several selection criteria, directly put in transaction or by creating predefined selection of partners, accounts or dunning related data using FPSELP and using FPSELP1 to define the layout of the resulting information.
    You get the result in spools which can be unified, or aditional data set in binary or text format.
    Hope this helps.
    Regards,
    Daniel

  • Displaying multiple values in auto-complete item

    All,
    iam creating multiple entries for autopopulate item as shown in this jquery plugin link below but iam trying to change this so values come from table query. how can i achieve this even using web services in apex 4.1.1 but iam trying NOT to use remote url or external file?
    http://jqueryui.com/autocomplete/#multiple
    regards

    Hello,
    I recently created an APEX 4.2 item type plugin which supports the selection of multiple entries and has autocomplete functionality built-in. The plugin is based on Select2; a popular jQuery plugin to enhance select lists. All details on the Select2 APEX plugin are available here.
    Kind regards,
    Nick

  • Display multiple liked data in same column (one-to-many relationship)

    Hi All,
    Allow me to illustrate my problem with an example.
    Suppose I have a cube with the following infoObejct and data:
    <u>0EMPLOYEE</u>....<u>ZDEGREE1</u>....<u>ZDEGREE2</u>....<u>ZAMT</u>
    1......................AA.................BS.................3000
    2......................BA.................MS.................5000
    Is there any way whereby BEx can display the data as follows:
    <u>Employee</u>......<u>Degree</u>....<u>Amount</u>
    1...................AA.........3000
    .....................BS
    2...................BA.........5000
    .....................MS
    Please any help will be much appreciated.
    Thanks in advance,
    Binh

    Hi Binh,
    Don't think it's possible.
    Theoretically, it might be possible to mix up in one column ZDEGREE1 and ZDEGREE2 (using structures) - feasibility needs investigation.
    However, both your combinations:
    1 - AA and 1 - BS (also 2 - BA and 2 - MS) have the same KF: 3000 ( and 5000).
    SO, if your goal is to show blank values for 1 - BS and 2 - MS, then it is illogical. These combinations have not blank values in the cube.
    Though, I might read your reqs wrongly.
    Best regards,
    Eugene

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

Maybe you are looking for