<?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: Accessing another layer in the same map service in Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337420#M55046</link>
    <description>&lt;P&gt;I'm using the classic viewer also if that's a factor. This web map is being used in the old web appbuilder still.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 18:18:09 GMT</pubDate>
    <dc:creator>BrandonPrice1</dc:creator>
    <dc:date>2023-10-12T18:18:09Z</dc:date>
    <item>
      <title>Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337369#M55038</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to access features from another layer in the same ArcGIS Server map service using Arcade?&amp;nbsp; The map service layers were added to the web map all together and not individually. I'm thinking no since no global variables are available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337369#M55038</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-12T16:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337389#M55041</link>
      <description>&lt;P&gt;It depends on what you're trying to do. Some &lt;A href="https://developers.arcgis.com/arcade/profiles/" target="_self"&gt;profiles&lt;/A&gt;, like &lt;A href="https://developers.arcgis.com/arcade/profiles/popup/" target="_self"&gt;Popup&lt;/A&gt;, give you access to the $map profile variable, while &lt;A href="https://developers.arcgis.com/arcade/profiles/attribute-rules/" target="_self"&gt;Attribute Rules&lt;/A&gt; gives you access to the $datastore variable.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 17:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337389#M55041</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-12T17:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337390#M55042</link>
      <description>&lt;P&gt;Where are you trying to implement this? If they're all in the same service, you ought to be able to use the global &lt;STRONG&gt;$datastore&lt;/STRONG&gt; to access the other layers, as in the function &lt;STRONG&gt;FeatureSetByName&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 17:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337390#M55042</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-10-12T17:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337413#M55044</link>
      <description>&lt;P&gt;Hi Josh. This is for a popup for a layer in the service. The $datastore option returned an error of not defined.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandonPrice1_0-1697133933915.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82956i1EC3A0BAB13E6679/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrandonPrice1_0-1697133933915.png" alt="BrandonPrice1_0-1697133933915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The service is public&amp;nbsp;&lt;A href="https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer" target="_blank"&gt;https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was trying to access the Zoning Sp Category layer from the Zoning layer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 18:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337413#M55044</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-12T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337416#M55045</link>
      <description>&lt;P&gt;Hi Ken. I tried $datastore prior to posting my issue and got an error saying it wasn't defined.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 18:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337416#M55045</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-12T18:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337420#M55046</link>
      <description>&lt;P&gt;I'm using the classic viewer also if that's a factor. This web map is being used in the old web appbuilder still.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 18:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337420#M55046</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-12T18:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337425#M55047</link>
      <description>&lt;P&gt;I think it has to do with it being a MapServer? Usually if you add your layer to the map using its layer ID, it will behave like a FeatureServer item.&lt;/P&gt;&lt;P&gt;Try adding the Zoning layer using its URL, &lt;A href="https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer/4" target="_blank"&gt;https://arcgis.gis.lacounty.gov/arcgis/rest/services/DRP/ZNET_Public/MapServer/4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With that in the map, the expression builder should have access to the usual globals. Seems to work over here!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1697135539339.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/82958i21910B91E0CA80EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1697135539339.png" alt="jcarlson_0-1697135539339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 18:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337425#M55047</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-10-12T18:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing another layer in the same map service in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337437#M55048</link>
      <description>&lt;P&gt;That's the only way I could think to do it also. Just wanted to double check. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 18:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/accessing-another-layer-in-the-same-map-service-in/m-p/1337437#M55048</guid>
      <dc:creator>BrandonPrice1</dc:creator>
      <dc:date>2023-10-12T18:48:58Z</dc:date>
    </item>
  </channel>
</rss>

