<?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>idea Field to Field by Location in ArcGIS Utility Network Ideas</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idi-p/942511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;It would be really cool to be able to select features by there location/proximity to one another&amp;nbsp;and then update a field using any already existing field in&amp;nbsp;the other&amp;nbsp;layer based on the nearest neighbor.&lt;UL&gt;&lt;LI&gt;I had a field worker collecting depth to nut for our water valves.&amp;nbsp; Depth to nut is not an inspection property but and actual attribute about the valve feature.&amp;nbsp; I need to have the field "depth to nut"&amp;nbsp; dumped into our valve layer, currently I will have to do this by hand....yikes! there are over 200!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Please ESRI... make loading field from field based on location. I included a picture to enhance the understanding of the features and the overlay.&lt;UL&gt;&lt;LI&gt;Thanks a bunch!#water #utilities #valves #nuts #depths #field #dumpit&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2019 17:26:48 GMT</pubDate>
    <dc:creator>deleted-user-yjvxGXQvvuHC</dc:creator>
    <dc:date>2019-02-15T17:26:48Z</dc:date>
    <item>
      <title>Field to Field by Location</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idi-p/942511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;It would be really cool to be able to select features by there location/proximity to one another&amp;nbsp;and then update a field using any already existing field in&amp;nbsp;the other&amp;nbsp;layer based on the nearest neighbor.&lt;UL&gt;&lt;LI&gt;I had a field worker collecting depth to nut for our water valves.&amp;nbsp; Depth to nut is not an inspection property but and actual attribute about the valve feature.&amp;nbsp; I need to have the field "depth to nut"&amp;nbsp; dumped into our valve layer, currently I will have to do this by hand....yikes! there are over 200!&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Please ESRI... make loading field from field based on location. I included a picture to enhance the understanding of the features and the overlay.&lt;UL&gt;&lt;LI&gt;Thanks a bunch!#water #utilities #valves #nuts #depths #field #dumpit&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 17:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idi-p/942511</guid>
      <dc:creator>deleted-user-yjvxGXQvvuHC</dc:creator>
      <dc:date>2019-02-15T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field to Field by Location</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idc-p/1038818#M84</link>
      <description>&lt;P&gt;I think based your description.&amp;nbsp; You would be able to accomplish this task using a Calculation (or batch calculation) attribute rules. You can do proximity queries within an arcade script (as an exmample, buffering a polygon and locating features that are within that buffer):&lt;/P&gt;&lt;P&gt;var bufferPolygon = Buffer($feature,20,'feet')&lt;BR /&gt;var structureFeatures = FeatureSetByName($datastore, 'somedb.user.StructureJunction', ['objectid', 'someValue'], true)&lt;BR /&gt;var structureFeature = First(Intersects(structureFeatures, bufferPolygon))&lt;/P&gt;&lt;P&gt;You can then update attributes on the feature you are editing ($feature) or on the features returned from the query (I'm not certain which you are specifically requesting, based on the value from the other feature.&lt;/P&gt;&lt;P&gt;Calculation rules target a field, you would target the field to update on the feature you are editing, and return the value to add into that field:&lt;/P&gt;&lt;P&gt;return structureFeature.someValue&lt;/P&gt;&lt;P&gt;If, instead, you are attempting to update the features from within the buffer, you can return a DML dictionary to do the work for you:&lt;/P&gt;&lt;P&gt;var structureFeatures = Intersects(structureFeatures, bufferPolygon)&lt;/P&gt;&lt;P&gt;j=0&lt;/P&gt;&lt;P&gt;for(var structureFeature in structureFeatures)&lt;BR /&gt;{&lt;BR /&gt;structureFeatureEdits[j] = {'ObjectID':structureFeature.objectid, 'attributes':{'FIELD_TO_UPDATE':$feature.fieldToPulllValueToUpdate}}&lt;/P&gt;&lt;P&gt;j = j + 1 }&lt;/P&gt;&lt;P&gt;//return the target field back to the $feature, include the 'edit' DML dictionary //to edit the other features.&lt;BR /&gt;return{ 'result':$feature.TheTargetField,&lt;BR /&gt;'edit':[{&lt;BR /&gt;'className':'TheOtherClassBeingUpdated','updates':structureFeatureEdits&lt;BR /&gt;}]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps, but for more examples the documentation is here:&lt;A href="https://developers.arcgis.com/arcade/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And for a playground to try your hand at the scripting:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/playground/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/playground/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 19:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idc-p/1038818#M84</guid>
      <dc:creator>DavidCrawford</dc:creator>
      <dc:date>2021-03-19T19:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Field to Field by Location - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idc-p/1038821#M85</link>
      <description>&lt;P&gt;There are Arcade functions available to use with attribute rules to accomplish this workflow.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 19:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-ideas/field-to-field-by-location/idc-p/1038821#M85</guid>
      <dc:creator>MelissaJarman</dc:creator>
      <dc:date>2021-03-19T19:37:53Z</dc:date>
    </item>
  </channel>
</rss>

