<?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 Fields property in FeartureSet is never assigned from a query task in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/fields-property-in-feartureset-is-never-assigned/m-p/204572#M5075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Fields property of FeatureSet that was introduced in 2.3 of the API never gets assigned when a feature set is returned from a query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fields information is returned from the rest endpoint (confirmed through fiddler and just by accessing the rest endpoint directly) but not assigned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is a bug in 2.3 and 2.4. It would be nice if this got fixed for the next version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christian Morin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2012 18:59:24 GMT</pubDate>
    <dc:creator>ChristianMorin</dc:creator>
    <dc:date>2012-02-07T18:59:24Z</dc:date>
    <item>
      <title>Fields property in FeartureSet is never assigned from a query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/fields-property-in-feartureset-is-never-assigned/m-p/204572#M5075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Fields property of FeatureSet that was introduced in 2.3 of the API never gets assigned when a feature set is returned from a query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fields information is returned from the rest endpoint (confirmed through fiddler and just by accessing the rest endpoint directly) but not assigned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is a bug in 2.3 and 2.4. It would be nice if this got fixed for the next version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christian Morin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 18:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/fields-property-in-feartureset-is-never-assigned/m-p/204572#M5075</guid>
      <dc:creator>ChristianMorin</dc:creator>
      <dc:date>2012-02-07T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fields property in FeartureSet is never assigned from a query task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/fields-property-in-feartureset-is-never-assigned/m-p/204573#M5076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for reporting this. I was able to reproduce with v2.4 but not in v3.0 Beta 2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For v2.4, you can probably do the following workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can update this SDK sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryWithoutMap" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryWithoutMap&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; void QueryTask_ExecuteCompleted(object sender, ESRI.ArcGIS.Client.Tasks.QueryEventArgs args)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var l = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" };
&amp;nbsp;&amp;nbsp; l.GetDetails(5, (a, b) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureSet featureSet = args.FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet.Fields = a.Fields;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (featureSet != null &amp;amp;&amp;amp; featureSet.Features.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultsJSON.Text = featureSet.ToJson();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("No features returned from query");
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/fields-property-in-feartureset-is-never-assigned/m-p/204573#M5076</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T10:08:35Z</dc:date>
    </item>
  </channel>
</rss>

