<?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 Alternate query code 400 error with feature layer created from MapService in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alternate-query-code-400-error-with-feature-layer/m-p/566468#M52869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The alternate query bug (&lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5&lt;/A&gt;&lt;SPAN&gt;) is causing problems with feature layer created from MapService with both snapshot and ondemand modes. This does not happen with a FeatureService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Snapshot mode can be worked around by setting the definition expression like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var time = new Date().getTime();
parks.setDefinitionExpression(time + '=' + time);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ondemand cannot be "tricked" in this manner because it often makes more than one request call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is can a feature layer in some way be set to usePost like esri.request?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:24:38 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2021-12-12T00:24:38Z</dc:date>
    <item>
      <title>Alternate query code 400 error with feature layer created from MapService</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alternate-query-code-400-error-with-feature-layer/m-p/566468#M52869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The alternate query bug (&lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5&lt;/A&gt;&lt;SPAN&gt;) is causing problems with feature layer created from MapService with both snapshot and ondemand modes. This does not happen with a FeatureService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Snapshot mode can be worked around by setting the definition expression like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var time = new Date().getTime();
parks.setDefinitionExpression(time + '=' + time);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ondemand cannot be "tricked" in this manner because it often makes more than one request call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is can a feature layer in some way be set to usePost like esri.request?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alternate-query-code-400-error-with-feature-layer/m-p/566468#M52869</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T00:24:38Z</dc:date>
    </item>
  </channel>
</rss>

