<?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: Attribute rule--drilldown other layers in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073104#M42573</link>
    <description>&lt;LI-CODE lang="javascript"&gt;// Calculation Rule
// Triggers: Insert

// create centroid
var cent = Centroid($feature)

// repeat this block for each intersecting feature class (change variable names!)
/////
var intersect_feature = First(Intersects(FeatureClassByName($map, "FeatureClass"), cent))
var value = null
if(intersect_feature != null) {
  value = intersect_feature.Value
}
/////

// return the values
return {
  "result": {
    "attributes": {
      "Field1": value_1,
      "Field2": value_2
    }
  }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 28 Jun 2021 08:07:02 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-06-28T08:07:02Z</dc:date>
    <item>
      <title>Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1072246#M42465</link>
      <description>&lt;P&gt;Here is the scenario:&lt;/P&gt;&lt;P&gt;for a newly created feature:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; get the center point of the feature polygon.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; use the point to query specific layers and get specific values.&amp;nbsp; these layers are in the same map.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; enter the values to the corresponding fields in the feature.&lt;/P&gt;&lt;P&gt;Like to use attribute rule to do this task so the drilldown values are entered during the feature creation.&amp;nbsp; Not sure if it is doable&lt;/P&gt;&lt;P&gt;We use Oracle/SDE database.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 19:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1072246#M42465</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-24T19:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1072972#M42560</link>
      <description>&lt;P&gt;You can certainly Copy the value of an intersecting feature using an Attribute Calculation Rule. Have a look at this &lt;A href="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/CopyValueIntersectingFeature.md" target="_blank" rel="noopener"&gt;ESRI Github Repo&lt;/A&gt; for examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 05:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1072972#M42560</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-06-27T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073104#M42573</link>
      <description>&lt;LI-CODE lang="javascript"&gt;// Calculation Rule
// Triggers: Insert

// create centroid
var cent = Centroid($feature)

// repeat this block for each intersecting feature class (change variable names!)
/////
var intersect_feature = First(Intersects(FeatureClassByName($map, "FeatureClass"), cent))
var value = null
if(intersect_feature != null) {
  value = intersect_feature.Value
}
/////

// return the values
return {
  "result": {
    "attributes": {
      "Field1": value_1,
      "Field2": value_2
    }
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Jun 2021 08:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073104#M42573</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-28T08:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073198#M42580</link>
      <description>&lt;P&gt;One more question.&amp;nbsp; is there any restriction for drilldown operation, e.g. drilldown feature classes have to be in a same dataset that editing feature class is?&lt;/P&gt;&lt;P&gt;thanks......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073198#M42580</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-28T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073218#M42584</link>
      <description>&lt;P&gt;Not that I am aware of. The analysis is done at the datastore or map level so as long as you are pulling reference data to update feature data is will not matter where the reference data is from. I have updated many features at once using this method when they are all in the same geodatabase, but updating one of the reference features may be an issue if they are not in the same geodatabase.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 15:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073218#M42584</guid>
      <dc:creator>IamTrash</dc:creator>
      <dc:date>2021-06-28T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute rule--drilldown other layers</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073237#M42585</link>
      <description>&lt;P&gt;I meant from different database.&amp;nbsp; we have our own database which we edit and we have a public browsing database we use as reference layers.&amp;nbsp; we drilldown to feature classes in browsing database to update a new feature created in the editing database.&lt;/P&gt;&lt;P&gt;based on your reply we should be able to do the drilldown operation.&amp;nbsp; we can't update browsing database anyway.&lt;/P&gt;&lt;P&gt;thanks.....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 15:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/m-p/1073237#M42585</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-28T15:56:37Z</dc:date>
    </item>
  </channel>
</rss>

