<?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 How to add selected featuter layer to FeatureTable? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166384#M77071</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm building a small GIS application, Where I'm adding multiple GeoJsonLayers based on user interactions from the browser and my current application has the FeatureTable with the extent map search.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt; is right now FeatureTable always pointing to the first layer from among all layers.&lt;/P&gt;&lt;P&gt;What I need is either FeatureTable should update with selected layer data or All layers data should be added to Feature Table.&lt;/P&gt;&lt;P&gt;Could anyone please provide help here?&lt;/P&gt;&lt;P&gt;Below is the screenshot of my application, where &lt;STRONG&gt;Red&lt;/STRONG&gt; points are the initial layer and &lt;STRONG&gt;Orange&lt;/STRONG&gt; points 2nd the layer, the &lt;STRONG&gt;Yellow&lt;/STRONG&gt; line string is 3rd layer ..etc.&lt;/P&gt;&lt;P&gt;Red points data is being loaded into FeatureTable and I want to load other layer data as well. How would it be feasible?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KrishnakanthYachareni_0-1650485112164.png" style="width: 773px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39489i35AA36A720B6A017/image-dimensions/773x364?v=v2" width="773" height="364" role="button" title="KrishnakanthYachareni_0-1650485112164.png" alt="KrishnakanthYachareni_0-1650485112164.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 20:19:13 GMT</pubDate>
    <dc:creator>KrishnakanthYachareni</dc:creator>
    <dc:date>2022-04-20T20:19:13Z</dc:date>
    <item>
      <title>How to add selected featuter layer to FeatureTable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166384#M77071</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm building a small GIS application, Where I'm adding multiple GeoJsonLayers based on user interactions from the browser and my current application has the FeatureTable with the extent map search.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt; is right now FeatureTable always pointing to the first layer from among all layers.&lt;/P&gt;&lt;P&gt;What I need is either FeatureTable should update with selected layer data or All layers data should be added to Feature Table.&lt;/P&gt;&lt;P&gt;Could anyone please provide help here?&lt;/P&gt;&lt;P&gt;Below is the screenshot of my application, where &lt;STRONG&gt;Red&lt;/STRONG&gt; points are the initial layer and &lt;STRONG&gt;Orange&lt;/STRONG&gt; points 2nd the layer, the &lt;STRONG&gt;Yellow&lt;/STRONG&gt; line string is 3rd layer ..etc.&lt;/P&gt;&lt;P&gt;Red points data is being loaded into FeatureTable and I want to load other layer data as well. How would it be feasible?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KrishnakanthYachareni_0-1650485112164.png" style="width: 773px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39489i35AA36A720B6A017/image-dimensions/773x364?v=v2" width="773" height="364" role="button" title="KrishnakanthYachareni_0-1650485112164.png" alt="KrishnakanthYachareni_0-1650485112164.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166384#M77071</guid>
      <dc:creator>KrishnakanthYachareni</dc:creator>
      <dc:date>2022-04-20T20:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add selected featuter layer to FeatureTable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166446#M77076</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can display attributes of one layer at a time in a FeatureTable. You can change FeatureTable.layer property at runtime to point to the desired table. This simple &lt;A href="https://codepen.io/U_B_U/pen/xxpBEqr?editors=100" target="_self"&gt;codepen app&lt;/A&gt; shows you how to change the FeatureTable.layer at runtime by changing the layer names from a drop down.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 23:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166446#M77076</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-04-20T23:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add selected featuter layer to FeatureTable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166506#M77080</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;is working but this solution is always replacing the existing layer with the new layer.&lt;BR /&gt;&lt;BR /&gt;What I'm looking for is to join or add the new layer to the existing layer, So that FeatureTable contains the old data as well as new layer data.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// Looking something similar like this one&lt;BR /&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;featureTable&lt;/SPAN&gt;.&lt;SPAN&gt;layer&lt;/SPAN&gt;.&lt;SPAN&gt;join &lt;/SPAN&gt;= featureLayer&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Could you please provide any inputs or suggestions to achive this?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 04:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166506#M77080</guid>
      <dc:creator>KrishnakanthYachareni</dc:creator>
      <dc:date>2022-04-21T04:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add selected featuter layer to FeatureTable?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166688#M77085</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use client-side FeatureLayer to achieve this if all the features have same geometry and same attributes. Please take a look at the following two sample how to create client-side FeatureLayer. You can create array of graphics before you create the new FeatureLayer and set the source to point those graphics. This sample shows how to create a client-side FeatureLayer from array of graphics.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you can add and remove graphics from your client-side layer using applyEdits method. This sample show how to add, remove graphics from your client side graphics at runtime:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FeatureLayer.source document has additional info:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 16:20:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-selected-featuter-layer-to-featuretable/m-p/1166688#M77085</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-04-21T16:20:41Z</dc:date>
    </item>
  </channel>
</rss>

