<?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 Query result or Graphic with display field in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489849#M12571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I was wondering if there was a way to pull the primary display field of a layer from a query task result or out of the graphic in the feature set. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the IdentifyResult contains the 'value' property that has it and I was wondering if the same can be accomplished from the QueryEventArgs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 22:26:02 GMT</pubDate>
    <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
    <dc:date>2012-01-26T22:26:02Z</dc:date>
    <item>
      <title>Query result or Graphic with display field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489849#M12571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I was wondering if there was a way to pull the primary display field of a layer from a query task result or out of the graphic in the feature set. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the IdentifyResult contains the 'value' property that has it and I was wondering if the same can be accomplished from the QueryEventArgs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 22:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489849#M12571</guid>
      <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
      <dc:date>2012-01-26T22:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query result or Graphic with display field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489850#M12572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;QueryTask does not return "displayField". You can either read this JSON string yourself: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0?f=pjson"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0?f=pjson&lt;/A&gt;&lt;SPAN&gt;. Use GetDetails(layer id) from ArcGISDynamicMapServiceLayer: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetDetails.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetDetails.html&lt;/A&gt;&lt;SPAN&gt; or use FeatureLayer.LayerInfo.DisplayField.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 00:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489850#M12572</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-01-27T00:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query result or Graphic with display field</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489851#M12573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this DisplayFieldName property in the QueryEventArgs.FeatureSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; Private Sub QueryTask_ExecuteCompleted(ByVal sender As Object, ByVal args As ESRI.ArcGIS.Client.Tasks.QueryEventArgs) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If args.FeatureSet.Count &amp;gt; 0 Then &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Results As FeatureSet &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Results = args.FeatureSet &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim displayFieldName As String = Results.DisplayFieldName&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 20:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-result-or-graphic-with-display-field/m-p/489851#M12573</guid>
      <dc:creator>Matrix_Solutions_Inc_Geomatics</dc:creator>
      <dc:date>2012-01-27T20:52:38Z</dc:date>
    </item>
  </channel>
</rss>

