<?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: How to write two where clause in URL Parameter? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1496585#M13268</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642760"&gt;@Shen_Zhang&lt;/a&gt;&amp;nbsp;. Is there a way to automatically pan and zoom based on data_s=where? Let me explain myself, when I use data_s=id it automatically pan and zoom the ObjectID, but when I use data_s=where it won't do that.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 12:31:26 GMT</pubDate>
    <dc:creator>ArunChetty</dc:creator>
    <dc:date>2024-06-24T12:31:26Z</dc:date>
    <item>
      <title>How to write two where clause in URL Parameter?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1390979#M11326</link>
      <description>Hi Everyone, I am looking for a way to write two 'where clauses' in the URL parameter. Using this URL, the feature ID with UID=4 will be selected. &lt;A href="https://experience.arcgis.com/experience/fd354455c7154e8d8a554f7c6da465ba/?draft=true#data_s=where:dataSource_1-states_new_7065:UID=4" target="_blank"&gt;https://experience.arcgis.com/experience/fd354455c7154e8d8a554f7c6da465ba/?draft=true#data_s=where:dataSource_1-states_new_7065:UID=4&lt;/A&gt; I want to set the query "WHERE UID =4,5,6,7", then, is there a way to achieve this? Reference: &lt;A href="https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm#GUID-ADD3075D-D8DE-4A32-85F2-598A34F830CB:~:text=When%20the%20selection%20type%20is%20id%2C%20you%20are%20selecting%20features%20by%20their%20recordIDs.%20If%20you%20are%20selecting%20multiple%20records%20from%20the%20same%20data%20source%2C%20recordIDs%20are%20separated%20by%20plus%20signs%20(%2B).%20The%20follow%20is%20an%20example%3A" target="_blank"&gt;https://doc.arcgis.com/en/experience-builder/latest/build-apps/url-parameters.htm#GUID-ADD3075D-D8DE-4A32-85F2-598A34F830CB:~:text=When%20the%20selection%20type%20is%20id%2C%20you%20are%20selecting%20features%20by%20their%20recordIDs.%20If%20you%20are%20selecting%20multiple%20records%20from%20the%20same%20data%20source%2C%20recordIDs%20are%20separated%20by%20plus%20signs%20(%2B).%20The%20follow%20is%20an%20example%3A&lt;/A&gt; As per the document, there are three selection types: id, geometry, and where. Does id only works for ObjectID field or is there a way we can use different field as ID?</description>
      <pubDate>Tue, 05 Mar 2024 08:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1390979#M11326</guid>
      <dc:creator>GeeteshSingh07</dc:creator>
      <dc:date>2024-03-05T08:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write two where clause in URL Parameter?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1391680#M11380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/721900"&gt;@GeeteshSingh07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The id type only works for OID or FID. If you want to use select for other fields, you should use where clauses, For example in your case:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"WHERE UID =4,5,6,7", you can use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#data_s=where:&amp;lt;dataSource_ID&amp;gt;:UID%20IN%20(4%2C5%2C6%2C7)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if you want to add another clause, you can use AND to concatenate them, just like any standard where clause does:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#data_s=where:&amp;lt;dataSource_ID&amp;gt;:UID IN (4,5,6,7) AND City = ’LA’ &lt;/LI-CODE&gt;&lt;P&gt;And please encode the data_s parameter value to make sure it work, like the following:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#data_s=where:&amp;lt;dataSource_ID&amp;gt;:UID%20IN%20(4%2C5%2C6%2C7)%20AND%20City%20%3D%20’LA’%20&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, if you're not sure how to write a SQL clause, you can use Select widget to set up a SQL expression. Here are the steps for your reference:&lt;/P&gt;&lt;P&gt;1. Add a table widget and create a sheet with the data you like (so you can see the result from URL parameters)&lt;/P&gt;&lt;P&gt;2. Add a select widget, choose Select by Attributes. Click Add new data and select the same data of that you chose for table&lt;/P&gt;&lt;P&gt;3. Click SQL Expression Builder to set up the clauses.&lt;/P&gt;&lt;P&gt;4. Save the app and go to preview. Click Attribute selection and enable the toggle appeared below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-06 at 15.09.50.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97016i5204EC8ED9B31EFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-03-06 at 15.09.50.png" alt="Screenshot 2024-03-06 at 15.09.50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At this time, you should be able to see the data_s with a where clause. You can try different SQL expressions to explore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this info can help as you explore URL parameters. Please come to us anytime you run into issues. thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 07:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1391680#M11380</guid>
      <dc:creator>Shen_Zhang</dc:creator>
      <dc:date>2024-03-06T07:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to write two where clause in URL Parameter?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1496585#M13268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642760"&gt;@Shen_Zhang&lt;/a&gt;&amp;nbsp;. Is there a way to automatically pan and zoom based on data_s=where? Let me explain myself, when I use data_s=id it automatically pan and zoom the ObjectID, but when I use data_s=where it won't do that.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 12:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1496585#M13268</guid>
      <dc:creator>ArunChetty</dc:creator>
      <dc:date>2024-06-24T12:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write two where clause in URL Parameter?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1498796#M13398</link>
      <description>&lt;P&gt;Zoom to feature by data_s where clauses is not supported yet, we're still working on it. Now you can &lt;A href="https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/map-widget.htm#:~:text=3Afalse%257D%257D-,Zoom%20to%20a%20selected%20feature,-The%20data_s%20parameter" target="_self"&gt;use&amp;nbsp;the&amp;nbsp;&lt;SPAN class=""&gt;zoom_to_selection=true&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;parameter to zoom to a feature selected by id.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 00:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-write-two-where-clause-in-url-parameter/m-p/1498796#M13398</guid>
      <dc:creator>Shen_Zhang</dc:creator>
      <dc:date>2024-06-28T00:49:03Z</dc:date>
    </item>
  </channel>
</rss>

