Loading ...
Sorry, an error occurred while loading the content.

Datatable using XML attributes

Expand Messages
  • tlezotte
    Hi, I m using a XML file to populate a Datatable. The XML file has attributes that I would like to display in the Datatable. --XML data file -----------
    Message 1 of 1 , Apr 30, 2007
    • 0 Attachment
      Hi,
      I'm using a XML file to populate a Datatable. The XML file has
      attributes that I would like to display in the Datatable.

      --XML data file -----------
      <location id="18">Detroit</location>
      <hire/>
      <description>Headquarters</description>
      <language>en</language>
      ---------------------------

      --YUI javascript ----------
      var myColumnHeaders = [
      {key:"location",text:"Location",class:"padding",formatter:formatActions},
      {key:"description",text:"Description",class:"center"}
      ];

      myDataSource.responseSchema = {
      resultNode: "Result",
      fields: ["location","description"]
      };
      ---------------------------

      So I'm looking to add "id" from "location" as another column header.
      Is this possible.

      Thanks, Tom
    Your message has been successfully submitted and would be delivered to recipients shortly.