<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QueryTask results cause problems with Viewer attribute table in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/querytask-results-cause-problems-with-viewer/m-p/709279#M1906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a few different rest services I use to test viewer tools in my development environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the services, which exposes the Area and Length shape attributes, was causing an exception when I would query it and open the attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The service's layer has the default attributes of Shape.STArea() and Shape.STLength().&amp;nbsp; When the layer was queried, those attributes were returned and the attribute table threw an exception when opened.&amp;nbsp; Those fields, however, were not displayed in the attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another layer where those attributes are labeled with caps, SHAPE.STArea() and SHAPE.STLength(), but those are NOT returned by the QueryTask so attribute table does not complain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Is this a bug with the API and/or the Viewer?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What is the best practice for dealing with the shape attributes?&amp;nbsp; Hide them from the rest service or rename them?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Thanks, GG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 22:31:54 GMT</pubDate>
    <dc:creator>GerardoGarza</dc:creator>
    <dc:date>2012-04-20T22:31:54Z</dc:date>
    <item>
      <title>QueryTask results cause problems with Viewer attribute table</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/querytask-results-cause-problems-with-viewer/m-p/709279#M1906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a few different rest services I use to test viewer tools in my development environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the services, which exposes the Area and Length shape attributes, was causing an exception when I would query it and open the attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The service's layer has the default attributes of Shape.STArea() and Shape.STLength().&amp;nbsp; When the layer was queried, those attributes were returned and the attribute table threw an exception when opened.&amp;nbsp; Those fields, however, were not displayed in the attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another layer where those attributes are labeled with caps, SHAPE.STArea() and SHAPE.STLength(), but those are NOT returned by the QueryTask so attribute table does not complain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Is this a bug with the API and/or the Viewer?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What is the best practice for dealing with the shape attributes?&amp;nbsp; Hide them from the rest service or rename them?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Thanks, GG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 22:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/querytask-results-cause-problems-with-viewer/m-p/709279#M1906</guid>
      <dc:creator>GerardoGarza</dc:creator>
      <dc:date>2012-04-20T22:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask results cause problems with Viewer attribute table</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/querytask-results-cause-problems-with-viewer/m-p/709280#M1907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fixed this by hiding the feature's area and length attributes in the rest service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not realize at the time I opened this thread that those attributes were specific to the SDE database holding the data.&amp;nbsp; In this case, I am using SQL Server spatial types, thus the STArea() and STLength() attribute names which I could not change, even by setting an alias.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/querytask-results-cause-problems-with-viewer/m-p/709280#M1907</guid>
      <dc:creator>GerardoGarza</dc:creator>
      <dc:date>2012-04-25T18:14:43Z</dc:date>
    </item>
  </channel>
</rss>

