<?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: Streamlayer's definitionExpression doesn't seem too work in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-s-definitionexpression-doesn-t-seem/m-p/280557#M25906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some new discoveries. When I set my definitionExpression it does filter a bit. It filters the streamlayer, but not the underlying feature class (the store latest)&lt;/P&gt;&lt;P&gt;I would expect that definitionExpression's would be passed down to the feature class as well... Can I force this behavior somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 11:48:25 GMT</pubDate>
    <dc:creator>Casper_Span</dc:creator>
    <dc:date>2016-10-12T11:48:25Z</dc:date>
    <item>
      <title>Streamlayer's definitionExpression doesn't seem too work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-s-definitionexpression-doesn-t-seem/m-p/280556#M25905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add a streamlayer to my javascript api 4.0 webapp. Its a stream of vehicle positions, with some added attributes, for instance, a status field.&lt;/P&gt;&lt;P&gt;Now I want to add a filter to only show the vehicles with status = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short, the basic code looks like this:&lt;/P&gt;&lt;P&gt;var streamLayer = new StreamLayer({&lt;/P&gt;&lt;P&gt;&amp;nbsp; url: lyrUrl,&lt;/P&gt;&lt;P&gt;&amp;nbsp; definitionExpression: "Status=1",&lt;/P&gt;&lt;P&gt;&amp;nbsp; purgeoptions: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayCount: 500&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;map.Add(streamLayer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The layer is hosted on an arcgis for server 10.4.1 installation with the matching geoevent extension.&lt;/P&gt;&lt;P&gt;The StreamService has Store Latest activated.&lt;/P&gt;&lt;P&gt;Also, when I update a vehicle so it's status changes, I do see the change on the feature's attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect when a vehicle changes from 1 to 2, that it disappears from the map view. However, this doesn't happen.&lt;/P&gt;&lt;P&gt;v4.1 shows the same behavior, although that version has some other showstopping bugs that won't allow me to upgrade just yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have a working sample of using a server side filter with a v4 StreamLayer? Are there any (un)documented prerequisites that I missed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 09:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-s-definitionexpression-doesn-t-seem/m-p/280556#M25905</guid>
      <dc:creator>Casper_Span</dc:creator>
      <dc:date>2016-10-12T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Streamlayer's definitionExpression doesn't seem too work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-s-definitionexpression-doesn-t-seem/m-p/280557#M25906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some new discoveries. When I set my definitionExpression it does filter a bit. It filters the streamlayer, but not the underlying feature class (the store latest)&lt;/P&gt;&lt;P&gt;I would expect that definitionExpression's would be passed down to the feature class as well... Can I force this behavior somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 11:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/streamlayer-s-definitionexpression-doesn-t-seem/m-p/280557#M25906</guid>
      <dc:creator>Casper_Span</dc:creator>
      <dc:date>2016-10-12T11:48:25Z</dc:date>
    </item>
  </channel>
</rss>

