<?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: Help with Rule Attribution in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071072#M40852</link>
    <description>&lt;P&gt;A certain type? can you elaborate?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 16:37:52 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-06-22T16:37:52Z</dc:date>
    <item>
      <title>Help with Rule Attribution in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071068#M40851</link>
      <description>&lt;P&gt;I'm trying to write an Arcade expression that does the following. If a line is within the boundary of another poly layer, the line takes the name attribution from the boundary, but only if the line is of a certain type. So far we have this which does the first part.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var OLT = FeatureSetByName($datastore, "Proposed_OLT_LCP_Boundaries",["cab_id"], true)
var intersectLayer = Intersects(OLT, Geometry($feature))
if (Count(intersectLayer) &amp;gt; 0) {
    var layer = First(intersectLayer);
    return layer.cab_id;
} else {
    return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I'm struggling with the part that only pulls in cab_id if intersectsLayer is of a certain type. Any input on this is greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071068#M40851</guid>
      <dc:creator>ChrisGAEG</dc:creator>
      <dc:date>2021-06-22T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Rule Attribution in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071072#M40852</link>
      <description>&lt;P&gt;A certain type? can you elaborate?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071072#M40852</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-22T16:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Rule Attribution in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071084#M40856</link>
      <description>&lt;P&gt;Yes we have a type field that has different labels. And we only want this function to apply to lines of a specific type in the layer. Here's what I'm trying to do (Although incorrect so far...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var OLT = FeatureSetByName($datastore, "Proposed_OLT_LCP_Boundaries",["cab_id"], true)
var intersectLayer = Intersects(OLT, Geometry($feature))
if ((Count(intersectLayer) &amp;gt; 0) and ($feature.cabletype == 'F1' or 'F2')) {
    var layer = First(instersectLayer);
    return layer.cab_id;
} else {
    return null;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071084#M40856</guid>
      <dc:creator>ChrisGAEG</dc:creator>
      <dc:date>2021-06-22T17:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Rule Attribution in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071089#M40858</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var OLT = FeatureSetByName($datastore, "Proposed_OLT_LCP_Boundaries",["cab_id"], true)
var intersectLayer = Intersects(OLT, Geometry($feature))
if (Count(intersectLayer) &amp;gt; 0 &amp;amp;&amp;amp; ($feature.cabletype == 'F1' || $feature.cabletype == 'F2')) {
    var layer = First(intersectLayer);
    return layer.cab_id;
} else {
    return null;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Jun 2021 17:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071089#M40858</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-22T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Rule Attribution in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071134#M40870</link>
      <description>&lt;P&gt;That works! The syntax example will also help a lot for future rules, so thanks so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/help-with-rule-attribution-in-arcade/m-p/1071134#M40870</guid>
      <dc:creator>ChrisGAEG</dc:creator>
      <dc:date>2021-06-22T18:35:16Z</dc:date>
    </item>
  </channel>
</rss>

