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

DataTable: What should resultNode be set to?

Expand Messages
  • Stuart Grimshaw
    The following is a snippet from my XMl that is being returned (as text/xml), what should I be setting my resultNode to in the js?
    Message 1 of 2 , Mar 2, 2007
    • 0 Attachment
      The following is a snippet from my XMl that is being returned (as
      text/xml), what should I be setting my resultNode to in the js?

      <!-- Begin -->

      <Grid title="Root Organization : Languages">
      <Head>
      <Col order="1" field="a" name="objName" dataType="String"
      text="Object Name" width="150"/>
      <Col order="2" field="b" name="langCountryCode" dataType="String"
      text="Country Code" sort="2" sortDir="ascending" width="70"/>
      <Col order="3" field="c" name="langLangCode" dataType="String"
      text="Language Code" sort="1" sortDir="ascending" group="1" width="70"/>
      <Col order="4" field="d" name="langLCID" dataType="Integer"
      text="LCID" width="50"/>
      <Col order="5" field="e" name="langDefCodePage" dataType="Integer"
      text="Default Code Page" width="50"/>
      <Col order="6" field="f" name="private" dataType="Boolean"
      text="Private" width="45" fixed="1"/>
      <Col order="7" field="g" name="static" dataType="Boolean"
      text="Static" width="45" fixed="1"/>
      </Head>
      <Body>
      <Row>
      <objName>English (United States)</objName>
      <langCountryCode>US</langCountryCode>
      <langLangCode>en</langLangCode>
      <static>1</static>
      </Row>
      <Row>
      <objName>Afrikaans</objName>
      <langCountryCode>AF</langCountryCode>
      <langLangCode>af</langLangCode>
      <langLCID>1078</langLCID>
      <langDefCodePage>1252</langDefCodePage>
      </Row>
      <Row>
      <objName>Albanian</objName>
      <langCountryCode>SQ</langCountryCode>
      <langLangCode>sq</langLangCode>
      <langLCID>1052</langLCID>
      <langDefCodePage>1250</langDefCodePage>
      </Row>
      <Row>
      <objName>Arabic (Saudi Arabia)</objName>
      <langCountryCode>SA</langCountryCode>
      <langLangCode>ar</langLangCode>
      <langLCID>1025</langLCID>
      <langDefCodePage>1256</langDefCodePage>
      </Row>
      <Row>
      <objName>Arabic (Iraq)</objName>
      <langCountryCode>IQ</langCountryCode>
      <langLangCode>ar</langLangCode>
      <langLCID>2049</langLCID>
      <langDefCodePage>1256</langDefCodePage>
      </Row>
      <Row>
      <objName>Arabic (Egypt)</objName>
      <langCountryCode>EG</langCountryCode>
      <langLangCode>ar</langLangCode>
      <langLCID>3073</langLCID>
      <langDefCodePage>1256</langDefCodePage>
      </Row>

      <!-- End -->

      The <head> node is what I use to build both the fields property of the
      responseSchema & the colum headers object too.
    • Stuart Grimshaw
      I think this problem is actuallt being caused by me trying to pass XML to the datasource, which it doesn t appear to support. ... -- -S Sports Photography:
      Message 2 of 2 , Mar 3, 2007
      • 0 Attachment
        I think this problem is actuallt being caused by me trying to pass XML to the datasource, which it doesn't appear to support.

        On 3/2/07, Stuart Grimshaw <stuart.grimshaw@...> wrote:

        The following is a snippet from my XMl that is being returned (as
        text/xml), what should I be setting my resultNode to in the js?

        <!-- Begin -->

        <Grid title="Root Organization : Languages">
        <Head>
        <Col order="1" field="a" name="objName" dataType="String"
        text="Object Name" width="150"/>
        <Col order="2" field="b" name="langCountryCode" dataType="String"
        text="Country Code" sort="2" sortDir="ascending" width="70"/>
        <Col order="3" field="c" name="langLangCode" dataType="String"
        text="Language Code" sort="1" sortDir="ascending" group="1" width="70"/>
        <Col order="4" field="d" name="langLCID" dataType="Integer"
        text="LCID" width="50"/>
        <Col order="5" field="e" name="langDefCodePage" dataType="Integer"
        text="Default Code Page" width="50"/>
        <Col order="6" field="f" name="private" dataType="Boolean"
        text="Private" width="45" fixed="1"/>
        <Col order="7" field="g" name="static" dataType="Boolean"
        text="Static" width="45" fixed="1"/>
        </Head>
        <Body>
        <Row>
        <objName>English (United States)</objName>
        <langCountryCode>US</langCountryCode>
        <langLangCode>en</langLangCode>
        <static>1</static>
        </Row>
        <Row>
        <objName>Afrikaans</objName>
        <langCountryCode>AF</langCountryCode>
        <langLangCode>af</langLangCode>
        <langLCID>1078</langLCID>
        <langDefCodePage>1252</langDefCodePage>
        </Row>
        <Row>
        <objName>Albanian</objName>
        <langCountryCode>SQ</langCountryCode>
        <langLangCode>sq</langLangCode>
        <langLCID>1052</langLCID>
        <langDefCodePage>1250</langDefCodePage>
        </Row>
        <Row>
        <objName>Arabic (Saudi Arabia)</objName>
        <langCountryCode>SA</langCountryCode>
        <langLangCode>ar</langLangCode>
        <langLCID>1025</langLCID>
        <langDefCodePage>1256</langDefCodePage>
        </Row>
        <Row>
        <objName>Arabic (Iraq)</objName>
        <langCountryCode>IQ</langCountryCode>
        <langLangCode>ar</langLangCode>
        <langLCID>2049</langLCID>
        <langDefCodePage>1256</langDefCodePage>
        </Row>
        <Row>
        <objName>Arabic (Egypt)</objName>
        <langCountryCode>EG</langCountryCode>
        <langLangCode>ar</langLangCode>
        <langLCID>3073</langLCID>
        <langDefCodePage>1256</langDefCodePage>
        </Row>

        <!-- End -->

        The <head> node is what I use to build both the fields property of the
        responseSchema & the colum headers object too.




        --
        -S

        Sports Photography: http://www.stuartgrimshaw.co.uk
        Blog: http://stubblog.wordpress.com
        Flickr: http://www.flickr.com/photos/StubbsUK
      Your message has been successfully submitted and would be delivered to recipients shortly.