<?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: Alter query features from FeatureLayerView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240146#M22269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. I have actually tried that (both in my own JS code and in the Arc sandbox), but when I zoom to other features the list on the right still updates to reflect only the features that are in the current view extent. My hope is that the list stays constant with all features, even when I zoom to specific features.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2019 23:39:58 GMT</pubDate>
    <dc:creator>BenBabbel</dc:creator>
    <dc:date>2019-08-27T23:39:58Z</dc:date>
    <item>
      <title>Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240144#M22267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I was wondering what would be the best way to adapt the query features from FeatureLayerView as seen in&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html"&gt;Query features from a FeatureLayerView | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;so that the list on the right simply includes &lt;EM&gt;all&lt;/EM&gt; features rather than just the ones within the view extent. I would like to keep all other parts to this function (zoom to feature when clicked, popup box..), but I just want to make it so all features are displayed on the list, and the list does not change when a feature is clicked then zoomed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 18:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240144#M22267</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-08-27T18:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240145#M22268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;To include all features, remove&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; geometry: view.extent&lt;/SPAN&gt; from the parameters of &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;layerView.queryFeatures&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;, then it should&amp;nbsp;show all features instead of just the ones in the view.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;layerView&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.queryFeatures({&lt;/SPAN&gt;
&lt;SPAN style="text-decoration: line-through; font-family: 'courier new', courier, monospace; "&gt;   geometry: view.extent,&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;   returnGeometry: true&lt;/SPAN&gt;
&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;})&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;.then(function(results) { ... });&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatures" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayerView.queryFeatures()&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Query&lt;/A&gt;&amp;nbsp;for more information on creating client-side queries. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240145#M22268</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2021-12-12T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240146#M22269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. I have actually tried that (both in my own JS code and in the Arc sandbox), but when I zoom to other features the list on the right still updates to reflect only the features that are in the current view extent. My hope is that the list stays constant with all features, even when I zoom to specific features.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 23:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240146#M22269</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-08-27T23:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240147#M22270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The FeatureLayerView queryFeatures method states:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Executes a&amp;nbsp;Query&amp;nbsp;against features &lt;STRONG&gt;available for drawing in the layer view&lt;/STRONG&gt; and returns a&amp;nbsp;FeatureSet.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you want all feature that the layer has then you need to query the actual layer and not use the layer view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2019 23:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240147#M22270</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-08-27T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240148#M22271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;You can also &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures"&gt;query all features&lt;/A&gt; from the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html"&gt;featurelayer&lt;/A&gt; when the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#whenLayerView"&gt;layer loads&lt;/A&gt;, which will guarantee that you will get all features in the layer. Though if you have thousands of features, this will affect the app performance. This codepen shows querying features from the layer:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/XWrgWeR?&amp;amp;editable=true&amp;amp;editors=100"&gt;https://codepen.io/U_B_U/pen/XWrgWeR?&amp;amp;editable=true&amp;amp;editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to list updating, the app is currently watching for &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#updating"&gt;layerView.updating&lt;/A&gt;&lt;/SPAN&gt; property so that the list will update when the user moves into a different view. If you wanted to query on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html"&gt;layerView&lt;/A&gt;, you could use the following method: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce"&gt;watchUtils.whenFalseOnce&lt;/A&gt;(layerView, "updating", function(){ ... }&amp;nbsp;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;which would run the logic only once when the app loads (this is commented out in the codepen). Hope this helps!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Anne&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 16:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240148#M22271</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2019-08-28T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240149#M22272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you both for your help! That seems to be doing the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 18:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240149#M22272</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-08-28T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240150#M22273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anne, something else has come up since following this method. While my original issue has been resolved (the list continuing to show all available layers - thank you again!), I noticed that the feature itself is no longer "selected" after clicking on one of the items on the populated list. The original code in the Query features from a FeatureLayerView automatically "selects" the feature once an item on the list is clicked. This became an issue because I have since&amp;nbsp; included a "Download Data" button to the pop-up for users to be able to download a zipped GeoTiff of the layer they are viewing, but the Download button does not work unless the feature in question is actually selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short, what is the best way to tweak this adapted code so that the feature which is being zoomed to is ALSO automatically selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As reference, this is the code I wrote to allow for the downloading of the data. It simply is meant to open the URL (found in the feature's attribute table) of the zipped raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.when(function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var popup = view.popup;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;popup.viewModel.on("trigger-action", function(event) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (event.action.id === "download-dem") {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var attributes = popup.viewModel.selectedFeature.attributes;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get the 'website' field attribute&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var info = attributes.Download;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Make sure the 'website' field value is not null&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (info) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Open up a new browser using the URL value in the 'website' field&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;window.open(info);&lt;BR /&gt; &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;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 21:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240150#M22273</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-09-25T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240151#M22274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;view.popup.open({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp; &amp;nbsp;fetchFeatures: true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp; &amp;nbsp;location: result.geometry.centroid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Here's a codepen with the change at line 165:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/annefitz/pen/zYObyJG" title="https://codepen.io/annefitz/pen/zYObyJG"&gt;https://codepen.io/annefitz/pen/zYObyJG&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeature"&gt;fetchFeatures&lt;/A&gt; parameter is new as of 4.12 and I think will help you achieve what you are trying to accomplish. Let me know if that works for you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Anne&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 21:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240151#M22274</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2019-09-25T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240152#M22275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the speedy response. I added the fetchFeatures in and I noticed that, for whatever reason, it only works if I click on the list item twice. One click zooms to the feature, but the second click will then select the feature. Here is what I have for my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (result) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;// open the popup at the centroid of satellite line&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;// and set the popup's features which will populate popup content and title.&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;view.goTo(result.geometry.extent.expand(1)).then(function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;view.popup.open({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fetchFeatures: true,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location: result.geometry.centroid,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;features: [result]&lt;BR /&gt;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;view.popup.dockOptions = {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;buttonEnabled: false,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;breakpoint: false&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Also, as a side note - I have my result.geometry.extent.expand at (1) rather than (2) like in your code, because I noticed a strange thing that if you click on the same list item multiple times, it keeps zooming out from the selected feature, and permanently has the view zoomed out for that feature until the page is refreshed. Not sure what is going on there either).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 22:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240152#M22275</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-09-25T22:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240153#M22276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Sorry I realized where the actual issue is. You don't need fetchFeatures, &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;features: [result]&lt;/SPAN&gt; should work fine. The real issue is coming from &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;featureLayer.queryFeatures()&amp;nbsp;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;because the outfields must be specified in order for the object to highlight. I just specified the Name, ObjectID, and the fields listed in the popup template to help improve performance time, but you can get all outfields using &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;outfields: [&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;"*"]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;featureLayer.queryFeatures({&lt;BR /&gt;&amp;nbsp; &amp;nbsp;where: "1=1",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;outFields:["NAME","B12001_calc_pctMarriedE","B12001_calc_numMarriedE","B12001_calc_numNeverE","B12001_calc_numDivorcedE","OBJECTID"],&lt;BR /&gt;&amp;nbsp; &amp;nbsp;returnGeometry: true&lt;BR /&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Here's another codepen showing this change, and showing some of the custom actions you can add to the popup:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/annefitz/pen/gOYyLXQ" title="https://codepen.io/annefitz/pen/gOYyLXQ"&gt;https://codepen.io/annefitz/pen/gOYyLXQ&lt;/A&gt;&amp;nbsp;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240153#M22276</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2019-09-26T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alter query features from FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240154#M22277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that did the trick! Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/alter-query-features-from-featurelayerview/m-p/240154#M22277</guid>
      <dc:creator>BenBabbel</dc:creator>
      <dc:date>2019-09-26T18:19:49Z</dc:date>
    </item>
  </channel>
</rss>

