<?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: How to write the condition &amp;quot;Where in (...)&amp;quot; in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46093#M1261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 09:18:00 GMT</pubDate>
    <dc:creator>AnatoliiTerentiev</dc:creator>
    <dc:date>2014-03-21T09:18:00Z</dc:date>
    <item>
      <title>How to write the condition &amp;quot;Where in (...)&amp;quot;</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46090#M1258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Gurus!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It needs&amp;nbsp; to display on the map a set of records from x,y-table. I choose the desired records&amp;nbsp; on a special form using different filters. I form an array of integer keys and pass them to the procedure with the next code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;public void OnShowQueryEvent(int[] codes)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueryTask queryTask = new QueryTask("http://serverName:6080/arcgis/rest/services/situations/MapServer/0");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.Failed += QueryTask_Failed;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.ReturnGeometry = true;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.Where = "id_event IN (1684,1685,1688,1690)";

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.ExecuteAsync(query);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I have shown a predefined set of codes. And how to write a condition similar to the following &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;id_event in codes&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 12:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46090#M1258</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-03-20T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the condition "Where in (...)"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46091#M1259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it correct to form&amp;nbsp; a similar&amp;nbsp; expression from array?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 04:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46091#M1259</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-03-21T04:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the condition "Where in (...)"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46092#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;may be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where = "id_event IN (" + string.Join(",", codes) + ")";&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 07:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46092#M1260</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-03-21T07:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the condition "Where in (...)"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46093#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 09:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-write-the-condition-amp-quot-where-in-amp/m-p/46093#M1261</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-03-21T09:18:00Z</dc:date>
    </item>
  </channel>
</rss>

