<?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 Re: QueryTask CodedvalueDomain values not resolved in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-codedvaluedomain-values-not-resolved/m-p/73217#M1785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this service for example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that lifecyclestatus is an integer field that identifies key of coded-value domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;lifecyclestatus (Type: esriFieldTypeInteger, Alias: Lifecycle Status, Editable: True, Domain: Coded Values: [0: Proposed/Potential], [1: Active/Confirmed], [2: Closed/Completed], ...1 more...)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the following query from your web browser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0/query?objectIds=&amp;amp;where=lifecyclestatus+%3D+1&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;f=html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0/query?objectIds=&amp;amp;where=lifecyclestatus+%3D+1&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;f=html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can only use "Status LIKE 'Active'" if Status is a string field and you expect it to match the word 'Active'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 04:08:59 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-04-05T04:08:59Z</dc:date>
    <item>
      <title>QueryTask CodedvalueDomain values not resolved</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-codedvaluedomain-values-not-resolved/m-p/73216#M1784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryTask queryTask = new QueryTask(currentMapInfo.Url + "/" + parcelsLayerIndex);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; queryTask.ExecuteCompleted += new EventHandler&amp;lt;QueryEventArgs&amp;gt;(queryTask_ExecuteCompleted);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; queryTask.Failed += new EventHandler&amp;lt;TaskFailedEventArgs&amp;gt;(query_Failed);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Query query = new Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; query.Where = "Status LIKE 'Active'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; query.OutFields.AddRange( new string[] { "*" } );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; queryTask.ExecuteAsync(query);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as you can see in the query.where I want to use the value of Status but when I execute que query there is not result this happens because Status is a domain so I have to use the value 2 instead of 'Active' is this a bug?? what can I do so that Querytask resolve Domain values???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 21:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-codedvaluedomain-values-not-resolved/m-p/73216#M1784</guid>
      <dc:creator>cristiansanabria</dc:creator>
      <dc:date>2011-04-04T21:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: QueryTask CodedvalueDomain values not resolved</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-codedvaluedomain-values-not-resolved/m-p/73217#M1785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this service for example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that lifecyclestatus is an integer field that identifies key of coded-value domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;lifecyclestatus (Type: esriFieldTypeInteger, Alias: Lifecycle Status, Editable: True, Domain: Coded Values: [0: Proposed/Potential], [1: Active/Confirmed], [2: Closed/Completed], ...1 more...)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try the following query from your web browser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0/query?objectIds=&amp;amp;where=lifecyclestatus+%3D+1&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;f=html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0/query?objectIds=&amp;amp;where=lifecyclestatus+%3D+1&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;f=html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can only use "Status LIKE 'Active'" if Status is a string field and you expect it to match the word 'Active'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 04:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/querytask-codedvaluedomain-values-not-resolved/m-p/73217#M1785</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-04-05T04:08:59Z</dc:date>
    </item>
  </channel>
</rss>

