0 Replies Latest reply on Apr 25, 2007 10:02 AM by Mongolian Beef

    e4x accessing of node for display in datagridcolumn

    Mongolian Beef Level 1
      I'm creating my own DataGrid using AS and am not sure how to access the "name" of the returned XML via e4x to be used by the dataField property of my DataGridColumn. Below is the xml I would like displayed:

      *************************************************
      <name xmlns=" http://chapters.books.carraige.com" xmlns:ns3=" http://chapters.books.carraige.com" xmlns:ns2=" http://item.books.carraige.com" xmlns:ns1=" http://package.books.carraige.com" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">Raging Waters</name>
      <name xmlns=" http://chapters.books.carraige.com" xmlns:ns3=" http://chapters.books.carraige.com" xmlns:ns2=" http://item.books.carraige.com" xmlns:ns1=" http://package.books.carraige.com" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">Bonfire of the Vanities</name>
      <name xmlns=" http://chapters.books.carraige.com" xmlns:ns3=" http://chapters.books.carraige.com" xmlns:ns2=" http://item.books.carraige.com" xmlns:ns1=" http://package.books.carraige.com" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">Waking the Dead</name>
      ********************************************

      Below is the e4x code that retrieves this:

      soap.createBooks.lastResult.*::createBooksResult.*::packs.*::PackWS.*::items.*::ItemWS.*:: chapters.*::ChapterWS.*::name

      Now i set my dataProvider property of my datagrid equal to the above e4x path access. This produces the correct number of records. However, I don't know what I need to put in for my dataGridColumn's dataField property in order to access the actual names. I've tried dataGridColumn.dataField = "name", but I get nothing. Does anyone know how to access the actual name value from the returned xml above for the dataField property? Thanks in advance!

      -los