<?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 Attribute Rules: Populate Value Based on Other Table (Addressing) in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559339#M1626</link>
    <description>&lt;P&gt;I've been tasked with migrating from ArcMap's Attribute Assistant set up to ArcGIS Pro's Attribute Rules for our Address Management. In Attribute Assistant, we used COPY_LINKED_RECORD to populate the different parts of the address (e.g. RoadPreDirection, RoadName, RoadType, RoadPostDirection) once the user entered the FullRoadName.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table MasterStreetNames that includes all that information so I'm trying to code that relationship so it pulls the needed value. This is what I have so far - but it's currently giving me the error of Field Not Found ?&lt;/P&gt;&lt;P&gt;Any guidance is appreciated!!&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var lookupField = "RoadPreDirection"
var commonField = "FullRoadName"
var sourceTable = FeatureSetByName($datastore, "MasterStreetName", [commonField, lookupField], false)

var commonValue = $feature[commonField]
var matchedFeatures = Filter(sourceTable, `${commonField} = @commonValue`)
var matchedFeature = First(matchedFeatures)
return Iif(matchedFeature == null, null, matchedFeature[lookupField])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 19:10:03 GMT</pubDate>
    <dc:creator>mlguanes</dc:creator>
    <dc:date>2024-11-15T19:10:03Z</dc:date>
    <item>
      <title>Attribute Rules: Populate Value Based on Other Table (Addressing)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559339#M1626</link>
      <description>&lt;P&gt;I've been tasked with migrating from ArcMap's Attribute Assistant set up to ArcGIS Pro's Attribute Rules for our Address Management. In Attribute Assistant, we used COPY_LINKED_RECORD to populate the different parts of the address (e.g. RoadPreDirection, RoadName, RoadType, RoadPostDirection) once the user entered the FullRoadName.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table MasterStreetNames that includes all that information so I'm trying to code that relationship so it pulls the needed value. This is what I have so far - but it's currently giving me the error of Field Not Found ?&lt;/P&gt;&lt;P&gt;Any guidance is appreciated!!&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var lookupField = "RoadPreDirection"
var commonField = "FullRoadName"
var sourceTable = FeatureSetByName($datastore, "MasterStreetName", [commonField, lookupField], false)

var commonValue = $feature[commonField]
var matchedFeatures = Filter(sourceTable, `${commonField} = @commonValue`)
var matchedFeature = First(matchedFeatures)
return Iif(matchedFeature == null, null, matchedFeature[lookupField])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 19:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559339#M1626</guid>
      <dc:creator>mlguanes</dc:creator>
      <dc:date>2024-11-15T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules: Populate Value Based on Other Table (Addressing)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559361#M1628</link>
      <description>&lt;P&gt;Solved it!&amp;nbsp;&lt;BR /&gt;For anyone in a similar situation, the following worked (replacing "RoadName" for whatever field is needed:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var sourceTable = FeatureSetByName($datastore,"MasterStreetName", ["FullRoadName", "RoadName"], false)
var matchingAttr = $feature.FullRoadName
var matchedFeature = First(Filter(sourceTable, "FullRoadName = @matchingAttr"))
If (matchedFeature == null){
    return null}
else{
    return matchedFeature.RoadName}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559361#M1628</guid>
      <dc:creator>mlguanes</dc:creator>
      <dc:date>2024-11-15T20:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules: Populate Value Based on Other Table (Addressing)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559473#M1629</link>
      <description>&lt;P&gt;In case you need it, take a look at the address solution, it includes attribute rules&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://arcg.is/PuTWX0" target="_blank"&gt;https://arcg.is/PuTWX0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559473#M1629</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-11-16T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules: Populate Value Based on Other Table (Addressing)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559617#M1632</link>
      <description>&lt;P&gt;Yes I'm proposing this solution to my GIS manager&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/attribute-rules-populate-value-based-on-other/m-p/1559617#M1632</guid>
      <dc:creator>mlguanes</dc:creator>
      <dc:date>2024-11-18T13:47:08Z</dc:date>
    </item>
  </channel>
</rss>

