<?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 Convert Definition Query Expression for use in AGO/Portal in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/convert-definition-query-expression-for-use-in-ago/m-p/1156832#M45061</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Just trying to inquire if there is a way to convert an &lt;STRONG&gt;SQL Definition Query Expression&lt;/STRONG&gt; (originally set up in ArcMap with related tables) into an &lt;STRONG&gt;AGO / PORTAL Web Map&lt;/STRONG&gt; environment with published services.&lt;/P&gt;&lt;P&gt;The following expression takes parcel features and selects them by a particular activity from tables in a two level relationship class.&amp;nbsp; This function varies according to each activity type required.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;PAMS_PIN in (select PAMS_PIN from dep.dep.Cad_TL_PINumbers_Composite where PI_Number in (select PI_Number from dep.dep.Cad_TL_Activities where Activity_Class_Code = 'TDG'))&lt;/LI-CODE&gt;&lt;P&gt;We would like to adapt this to newly published services for the parcels and the related tables using a spatial filter on the service. We know there is an Arcade expression feature in the&amp;nbsp;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;Change Style&lt;/STRONG&gt;&lt;/FONT&gt; option, but that does seem to have access to both table attributes. Also, is there a solution via &lt;FONT color="#808080"&gt;&lt;STRONG&gt;AGO Assistant&lt;/STRONG&gt;&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;Here is a screen shot for the related tables and the associated GIS layer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37119i6F382063C2E2BD6C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 16:43:02 GMT</pubDate>
    <dc:creator>EmmanuelJohn</dc:creator>
    <dc:date>2022-03-23T16:43:02Z</dc:date>
    <item>
      <title>Convert Definition Query Expression for use in AGO/Portal</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/convert-definition-query-expression-for-use-in-ago/m-p/1156832#M45061</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Just trying to inquire if there is a way to convert an &lt;STRONG&gt;SQL Definition Query Expression&lt;/STRONG&gt; (originally set up in ArcMap with related tables) into an &lt;STRONG&gt;AGO / PORTAL Web Map&lt;/STRONG&gt; environment with published services.&lt;/P&gt;&lt;P&gt;The following expression takes parcel features and selects them by a particular activity from tables in a two level relationship class.&amp;nbsp; This function varies according to each activity type required.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;PAMS_PIN in (select PAMS_PIN from dep.dep.Cad_TL_PINumbers_Composite where PI_Number in (select PI_Number from dep.dep.Cad_TL_Activities where Activity_Class_Code = 'TDG'))&lt;/LI-CODE&gt;&lt;P&gt;We would like to adapt this to newly published services for the parcels and the related tables using a spatial filter on the service. We know there is an Arcade expression feature in the&amp;nbsp;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;Change Style&lt;/STRONG&gt;&lt;/FONT&gt; option, but that does seem to have access to both table attributes. Also, is there a solution via &lt;FONT color="#808080"&gt;&lt;STRONG&gt;AGO Assistant&lt;/STRONG&gt;&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;Here is a screen shot for the related tables and the associated GIS layer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37119i6F382063C2E2BD6C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/convert-definition-query-expression-for-use-in-ago/m-p/1156832#M45061</guid>
      <dc:creator>EmmanuelJohn</dc:creator>
      <dc:date>2022-03-23T16:43:02Z</dc:date>
    </item>
  </channel>
</rss>

