<?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 Alternative solution for Sub Queries with Standardized Queries in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1330100#M37177</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;today, we've implemented a solution with subqueries as where-parameters in the requests, as the standardized queries option was disabled so far.&lt;/P&gt;&lt;P&gt;Now, for security reasons, we have to activate this standardized queries option on our ArcGIS Enterprise platform.&lt;/P&gt;&lt;P&gt;Our Case described in a high level view:&lt;/P&gt;&lt;P&gt;Table "CELLS":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CELL_ID, CELL_NAME&lt;/EM&gt;&lt;BR /&gt;1, ABCD1A&lt;BR /&gt;2, ABCD2A&lt;BR /&gt;3, ABCD3A&lt;/P&gt;&lt;P&gt;Table "ALARMS":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ALARM_ID, CELL_ID, ALARM_ON, ALARM_OFF&lt;/EM&gt;&lt;BR /&gt;1000, 1 , 1.1.2020 08:00, 1.1.2020 09:00&lt;BR /&gt;1001, 1 , 2.1.2020 12:00, NULL&lt;BR /&gt;1002, 2, 1.1.2020 08:00, 1.1.2020 09:00&lt;/P&gt;&lt;P&gt;Our map service has a query layer with source: "SELECT * FROM CELLS"&lt;/P&gt;&lt;P&gt;With the where clause we filtered so far&amp;nbsp; in the requests with: "1=1 AND CELL_ID IN (SELECT CELL_ID FROM ALARMS WHERE ALARM_OFF IS NULL)" to receive all cells with an open alarm.&lt;/P&gt;&lt;P&gt;(We have further scenarios for filtering with attributes and those filters are dynamically concatenated regarding users settings).&lt;/P&gt;&lt;P&gt;Now with standardized queries option, this subqueries will no longer be possible.&lt;/P&gt;&lt;P&gt;What's the best practice for cases like this?&lt;/P&gt;&lt;P&gt;Thank you for every hint.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 13:22:07 GMT</pubDate>
    <dc:creator>SCS_ANST</dc:creator>
    <dc:date>2023-09-19T13:22:07Z</dc:date>
    <item>
      <title>Alternative solution for Sub Queries with Standardized Queries</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1330100#M37177</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;today, we've implemented a solution with subqueries as where-parameters in the requests, as the standardized queries option was disabled so far.&lt;/P&gt;&lt;P&gt;Now, for security reasons, we have to activate this standardized queries option on our ArcGIS Enterprise platform.&lt;/P&gt;&lt;P&gt;Our Case described in a high level view:&lt;/P&gt;&lt;P&gt;Table "CELLS":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CELL_ID, CELL_NAME&lt;/EM&gt;&lt;BR /&gt;1, ABCD1A&lt;BR /&gt;2, ABCD2A&lt;BR /&gt;3, ABCD3A&lt;/P&gt;&lt;P&gt;Table "ALARMS":&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ALARM_ID, CELL_ID, ALARM_ON, ALARM_OFF&lt;/EM&gt;&lt;BR /&gt;1000, 1 , 1.1.2020 08:00, 1.1.2020 09:00&lt;BR /&gt;1001, 1 , 2.1.2020 12:00, NULL&lt;BR /&gt;1002, 2, 1.1.2020 08:00, 1.1.2020 09:00&lt;/P&gt;&lt;P&gt;Our map service has a query layer with source: "SELECT * FROM CELLS"&lt;/P&gt;&lt;P&gt;With the where clause we filtered so far&amp;nbsp; in the requests with: "1=1 AND CELL_ID IN (SELECT CELL_ID FROM ALARMS WHERE ALARM_OFF IS NULL)" to receive all cells with an open alarm.&lt;/P&gt;&lt;P&gt;(We have further scenarios for filtering with attributes and those filters are dynamically concatenated regarding users settings).&lt;/P&gt;&lt;P&gt;Now with standardized queries option, this subqueries will no longer be possible.&lt;/P&gt;&lt;P&gt;What's the best practice for cases like this?&lt;/P&gt;&lt;P&gt;Thank you for every hint.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1330100#M37177</guid>
      <dc:creator>SCS_ANST</dc:creator>
      <dc:date>2023-09-19T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative solution for Sub Queries with Standardized Queries</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1352374#M37739</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/500837"&gt;@SCS_ANST&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pls check and see if this approach helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-layer.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-layer.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 00:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1352374#M37739</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2023-11-22T00:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative solution for Sub Queries with Standardized Queries</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1354529#M37790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's what exactly we've implemented now. It was more difficult to use them with the javascript api. Here the solution was parameterValues (&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-map-service-layer-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/query-map-service-layer-.htm&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Problem solved so far for us. Thank you for your support.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 09:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/alternative-solution-for-sub-queries-with/m-p/1354529#M37790</guid>
      <dc:creator>SCS_ANST</dc:creator>
      <dc:date>2023-11-29T09:58:37Z</dc:date>
    </item>
  </channel>
</rss>

