<?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: Create a definition expression on a feature collection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4353#M421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't have a solution. You should probably ask this as a separate question to get a wider response (and mark this one as answered).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2018 19:56:32 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2018-06-26T19:56:32Z</dc:date>
    <item>
      <title>Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4350#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if it is possible to create a definition expression on a feature layer that was created from a feature collection (or JSON). I have modeled part of my application after this sample on for version 4x:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer-collection" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer-collection"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting the definition expression and then printing out the feature layer (console.log), I can see in the meta data that a definition expression has been set, but it just doesn't display on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide me with an explanation to this behavior? I have also reproduced the same results in the above sample sandbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4350#M418</guid>
      <dc:creator>JacobTodd3</dc:creator>
      <dc:date>2018-06-26T19:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4351#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the FeatureLayer &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;Known Limitations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Definition expressions will not be honored when working with FeatureLayers created from client-side graphics.&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4351#M419</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-06-26T19:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4352#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your speedy response, although it is unfortunate that this is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a little bit more information for my reason for using client side graphics:&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;currently developing a SaaS based application that utilizes one primary feature class. I am returning the client side graphics via the REST API with C# which allows me to only return the logged in user's content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To your knowledge, is there another way of going about this without the use of client side graphics as well as not exposing the user's information, such as their userid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4352#M420</guid>
      <dc:creator>JacobTodd3</dc:creator>
      <dc:date>2018-06-26T19:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4353#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't have a solution. You should probably ask this as a separate question to get a wider response (and mark this one as answered).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 19:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4353#M421</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-06-26T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4354#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution I can think of is to loop through the graphics when you get them returned and set the ones that are not suppose to be visible to invisible by setting the visible property on the graphic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 00:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/4354#M422</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-27T00:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a definition expression on a feature collection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/1298314#M81352</link>
      <description>&lt;P&gt;it works now&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 20:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-definition-expression-on-a-feature/m-p/1298314#M81352</guid>
      <dc:creator>platmoskito</dc:creator>
      <dc:date>2023-06-12T20:24:16Z</dc:date>
    </item>
  </channel>
</rss>

