<?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: FeatureLayerView does not expose all attributes of its layer FeatureLayer fields in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-does-not-expose-all-attributes-of/m-p/1409146#M84306</link>
    <description>&lt;P&gt;You need to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields" target="_self"&gt;FeatureLayer.outFields&lt;/A&gt; property to get all the fields as explained in the doc.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 18:36:19 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2024-04-12T18:36:19Z</dc:date>
    <item>
      <title>FeatureLayerView does not expose all attributes of its layer FeatureLayer fields</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-does-not-expose-all-attributes-of/m-p/1409083#M84305</link>
      <description>&lt;P&gt;Here is the JavaScript (4.28):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;theFeatureLayerToQuery.when(function(){
    mapView.whenLayerView(theFeatureLayerToQuery).then((theLayerView) =&amp;gt; {
    reactiveUtils.whenOnce(() =&amp;gt; !theLayerView.updating).then(() =&amp;gt; {
        theLayerView.queryFeatures({outFields: ["*"] }).then(function(results){
            console.log(results);
        });
    });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results in the console log show that there are 32 fields:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dirk_Vandervoort_0-1712939819395.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100834i3E0038CEC3C42EF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dirk_Vandervoort_0-1712939819395.png" alt="Dirk_Vandervoort_0-1712939819395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results in the features.attributes only show 4 attributes:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dirk_Vandervoort_1-1712939899753.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100836i38642A71596BA45B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dirk_Vandervoort_1-1712939899753.png" alt="Dirk_Vandervoort_1-1712939899753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I understand that the local queries on the FeatureLayerView are supposed to be more performant than against the FeatureLayer. However, I can't get to 28 of the 32 fields I need to do interesting things. How can I get all the fields into features of my FeatureLayerView ?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;(one of these days: CodePen)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-does-not-expose-all-attributes-of/m-p/1409083#M84305</guid>
      <dc:creator>Dirk_Vandervoort</dc:creator>
      <dc:date>2024-04-12T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayerView does not expose all attributes of its layer FeatureLayer fields</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-does-not-expose-all-attributes-of/m-p/1409146#M84306</link>
      <description>&lt;P&gt;You need to set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields" target="_self"&gt;FeatureLayer.outFields&lt;/A&gt; property to get all the fields as explained in the doc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 18:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayerview-does-not-expose-all-attributes-of/m-p/1409146#M84306</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-04-12T18:36:19Z</dc:date>
    </item>
  </channel>
</rss>

