<?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: Query for Related table in Inbox Query in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761772#M1823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/344115"&gt;Ben Bond&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option would be to add a calculation question in your repeat and in either the Calculation or Default columns put a value of 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of the repeat you can create a hidden question and have a calculation that counts the number of those calculate questions. The calculation would look like count(${repeat_calculation}).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then modify your where clause to be&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Status='Active' AND repeatcount&amp;gt;'1'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;My sample XLSForm looked like:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;begin repeat&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;text (for testing)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;calculate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Calculation: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;end repeat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;hidden&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Calculation:&amp;nbsp;count(${calculate})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Zach&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2020 23:03:20 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2020-07-23T23:03:20Z</dc:date>
    <item>
      <title>Query for Related table in Inbox Query</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761771#M1822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a Survey123 app that utilizes the inbox for lechate monitoring at a landfill.&amp;nbsp; I would like to use the inbox to create a list of all the wells they have to measure for each day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have the query set to [Status='Active'] and that will pull in all the wells that need to be measured.&amp;nbsp; I then use a related table in a repeat for them to store the measurements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is once they refresh the form all the wells will reappear.&amp;nbsp; So is there any way to add a related table query to the inbox query to only show wells that are [Status='Active'] and do not have a related table measurement taken today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that is as clear as mud...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 18:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761771#M1822</guid>
      <dc:creator>BenBond</dc:creator>
      <dc:date>2020-07-23T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Related table in Inbox Query</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761772#M1823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/344115"&gt;Ben Bond&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option would be to add a calculation question in your repeat and in either the Calculation or Default columns put a value of 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of the repeat you can create a hidden question and have a calculation that counts the number of those calculate questions. The calculation would look like count(${repeat_calculation}).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then modify your where clause to be&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Status='Active' AND repeatcount&amp;gt;'1'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;My sample XLSForm looked like:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;begin repeat&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;text (for testing)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;calculate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Calculation: 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;end repeat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;hidden&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Calculation:&amp;nbsp;count(${calculate})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Zach&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 23:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761772#M1823</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2020-07-23T23:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query for Related table in Inbox Query</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761773#M1824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zach,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ooo, I like that.&amp;nbsp; Initially as I was posting this question I though the easiest work around would be to create a new field on the base Lechate table and modify it with the last date pumped.&amp;nbsp; But I didn't really want to manage constant updates to the base table and have a field dedicated solely to the last time it was updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really like the idea of performing the calculation in the repeat and filtering by a hidden field.&amp;nbsp; Sound great, I'll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 12:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-for-related-table-in-inbox-query/m-p/761773#M1824</guid>
      <dc:creator>BenBond</dc:creator>
      <dc:date>2020-07-24T12:16:04Z</dc:date>
    </item>
  </channel>
</rss>

