<?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: Autofill Fields Using Overlapping Point Buffers Using Arcade? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15336#M770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake, yes exactly. But how does the code tell where to put the ID from buffered layer A into the right field in layer B?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In essence what I'm trying to do is this:if I create a new feature B that is within 20 feet of a feature in Layer A, take ID from Layer A and put it in ID for layer B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2019 19:23:15 GMT</pubDate>
    <dc:creator>ShelbyZemken1</dc:creator>
    <dc:date>2019-04-05T19:23:15Z</dc:date>
    <item>
      <title>Autofill Fields Using Overlapping Point Buffers Using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15334#M768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was inspired by &lt;A _jive_internal="true" href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade" target="_blank"&gt;KGerrow's blog&amp;nbsp;post&lt;/A&gt;&amp;nbsp;to autogeneraet some attributes when creating a feature since it could save hundreds of hours of time. I'm looking for some feedback on my methods and code below. My aim is to autopopulate the field of one point feature layer from a field value of another point feature layer when I&amp;nbsp;generate a new&amp;nbsp;feature in a web map. What makes this different than what I have seen is that I have to buffer the point first to make sure the data is joined correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;I think I'm missing some key piece of&amp;nbsp;code to put the data from layer A into layer B. When I test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Define var A and field&amp;nbsp;I want to extract from&lt;/LI&gt;&lt;LI&gt;Define var B&amp;nbsp;and field I want to put the value into&lt;/LI&gt;&lt;LI&gt;Define var C - which buffers the&amp;nbsp;A&amp;nbsp;&amp;nbsp;20 feet so when the new&amp;nbsp;feature is created next to it, it pulls the info from A into B.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Return Layer A field ID into newly generated feature of Layer B into ID field.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; A &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"A"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; B &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"B"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; C &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Buffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'feet'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"A"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

  

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; C &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; C&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ID&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I&amp;nbsp;take the field from the buffered layer C and put it into layer B?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15334#M768</guid>
      <dc:creator>ShelbyZemken1</dc:creator>
      <dc:date>2021-12-10T20:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill Fields Using Overlapping Point Buffers Using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15335#M769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shelby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm following you correctly.&amp;nbsp; You want to buffer layer &lt;STRONG&gt;B&lt;/STRONG&gt; by 20 feet and get the &lt;STRONG&gt;ID &lt;/STRONG&gt;from layer &lt;STRONG&gt;A&lt;/STRONG&gt;.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var bufferLayer = Buffer($feature, 20, 'feet')
var intersectLayer =Intersects(FeatureSetByName($map,"A"), bufferLayer)

for (var f in intersectLayer){
    return f.ID
}
‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15335#M769</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T20:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill Fields Using Overlapping Point Buffers Using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15336#M770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake, yes exactly. But how does the code tell where to put the ID from buffered layer A into the right field in layer B?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In essence what I'm trying to do is this:if I create a new feature B that is within 20 feet of a feature in Layer A, take ID from Layer A and put it in ID for layer B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15336#M770</guid>
      <dc:creator>ShelbyZemken1</dc:creator>
      <dc:date>2019-04-05T19:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill Fields Using Overlapping Point Buffers Using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15337#M771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You won't be able to update attributes in another feature service using Arcade.&amp;nbsp; From the &lt;A href="https://developers.arcgis.com/arcade/guide/"&gt;help&lt;/A&gt;, &lt;EM&gt;Arcade is intended solely for evaluating embedded expressions such as those used in the &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#visualization"&gt;visualization&lt;/A&gt;, &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#labeling"&gt;labeling&lt;/A&gt;, &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#popup"&gt;popup&lt;/A&gt;, and &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#alias"&gt;alias&lt;/A&gt; contexts of applications built with the ArcGIS platform&lt;/EM&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will only be able to display the information you want when clicking on the feature.&amp;nbsp; It will not be stored within the service's attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15337#M771</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-04-05T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill Fields Using Overlapping Point Buffers Using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15338#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jake, I appreciate your time and effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/autofill-fields-using-overlapping-point-buffers/m-p/15338#M772</guid>
      <dc:creator>ShelbyZemken1</dc:creator>
      <dc:date>2019-04-05T19:48:11Z</dc:date>
    </item>
  </channel>
</rss>

