<?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: query.where issu in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549355#M51160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is that your exact query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This query.where= "field1='"+value1+"'" &amp;amp;&amp;amp; "field2='"+value2+"'" is a boolean expression, true or false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the exact code you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be formed as query.where = "field1='" + value1 + "' AND field2='" + value2 + "'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to test it via the Query REST page and see if it works as expected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 12:31:26 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2013-05-14T12:31:26Z</dc:date>
    <item>
      <title>query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549352#M51157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi , i try to query&amp;nbsp; on more than one field, I want to have somthing like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"query.where= "field1='"+value1+"'" &amp;amp;&amp;amp; "field2='"+value2+"'" ; but it doesn't work, it consider just the last field :it works as it was one only field wich is the last one.&amp;nbsp; if you have Any idea please&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 09:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549352#M51157</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549353#M51158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try putting "AND" instead of "&amp;amp;&amp;amp;" in where clause&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549353#M51158</guid>
      <dc:creator>VinayBansal</dc:creator>
      <dc:date>2013-05-14T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549354#M51159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try putting "AND" instead of "&amp;amp;&amp;amp;" in where clause&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for replying , but I had already tried it and it doesn't work too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549354#M51159</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T12:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549355#M51160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is that your exact query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This query.where= "field1='"+value1+"'" &amp;amp;&amp;amp; "field2='"+value2+"'" is a boolean expression, true or false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the exact code you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be formed as query.where = "field1='" + value1 + "' AND field2='" + value2 + "'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to test it via the Query REST page and see if it works as expected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549355#M51160</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-05-14T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549356#M51161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is that your exact query?&lt;BR /&gt;This query.where= "field1='"+value1+"'" &amp;amp;&amp;amp; "field2='"+value2+"'" is a boolean expression, true or false.&lt;BR /&gt;Is this the exact code you are using?&lt;BR /&gt;It should be formed as query.where = "field1='" + value1 + "' AND field2='" + value2 + "'"&lt;BR /&gt;Try to test it via the Query REST page and see if it works as expected.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,thank you for replaying. I tested the&amp;nbsp; query as you suggested&amp;nbsp; in the REST page and I had an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "error" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 400, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "Unable to complete&amp;nbsp; operation.", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "details" : [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Unable to complete Query operation."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549356#M51161</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549357#M51162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think if a field value is numeric, you can eliminate the single quotes, could be an issue. Tough to diagnose without looking at the data. How about if you do one query a time, without trying to combine them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549357#M51162</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-05-14T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549358#M51163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think if a field value is numeric, you can eliminate the single quotes, could be an issue. Tough to diagnose without looking at the data. How about if you do one query a time, without trying to combine them?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I teied this&amp;nbsp; on the rest page :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field1='value1' AND field2='value2' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and it works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549358#M51163</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549359#M51164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the problem is that when I use the "AND" in JS code , it's not recognized. Have you any idea about that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 14:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549359#M51164</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T14:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549360#M51165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post what isn't working in your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 15:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549360#M51165</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-05-14T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549361#M51166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you post what isn't working in your code?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var val1=this.widgets.textSearch.getValue();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var val2=this.widgets.exp.getValue();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if( val1&amp;amp;&amp;amp;val2){q.where="p_from='"+val1+"'" &amp;amp;&amp;amp;"p_to='"+val2+"'";} "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to replace "&amp;amp;&amp;amp;" withe "AND" but still not working&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 15:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549361#M51166</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549362#M51167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this instead&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if( val1&amp;amp;&amp;amp;val2){q.where="p_from='"+val1+"' AND p_to='"+val2+"'";}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 16:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549362#M51167</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-05-14T16:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549363#M51168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try this instead&lt;BR /&gt;&lt;BR /&gt;if( val1&amp;amp;&amp;amp;val2){q.where="p_from='"+val1+"' AND p_to='"+val2+"'";}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you so much ,It works finally thanks to you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 17:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549363#M51168</guid>
      <dc:creator>khadijaahal_el_fadl</dc:creator>
      <dc:date>2013-05-14T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: query.where issu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549364#M51169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gald to help. When you run into problems like this, you should use the debugger to see how the where clause is interpreted by the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to click the check mark on the post that best answered your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 17:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/query-where-issu/m-p/549364#M51169</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-05-14T17:52:39Z</dc:date>
    </item>
  </channel>
</rss>

