<?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: Reporting code problem in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385480#M54937</link>
    <description>&lt;P&gt;Also, regarding logic symbols, equals is &lt;STRONG&gt;==&lt;/STRONG&gt;, and not equals is &lt;STRONG&gt;!=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have a look at &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm" target="_self"&gt;this&lt;/A&gt;. Logical operators are at the bottom of the page (copy-pasted to below).&lt;/P&gt;&lt;DIV class=""&gt;Operator Description &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;||&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if one of two statements returns true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if both given statements return true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;!&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the statement is not true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;==&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the two given values are equal to each other&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;!=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the two given values are not equal to each other&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is greater than the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;gt;=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is greater than or equal to the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is less than the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;lt;=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is less than or equal to the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 22 Feb 2024 15:39:05 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-02-22T15:39:05Z</dc:date>
    <item>
      <title>Reporting code problem</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385104#M54926</link>
      <description>&lt;P&gt;The highlighted portion is what we are trying to code so to further explain it,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as the code block for the pavement areas on the extra advanced report goes, what is written out there is very much a work in progress and me trying out variations of an if statement on a summary section in the report.&amp;nbsp; I don’t actually know that an if statement there is even possible or if we have to go another route entirely though, which is why I felt this might need some ESRI support.&lt;/P&gt;&lt;P&gt;The jist was to write a pair of if statements for each issue group header, where the first one would try to determine if there is a greater than zero count of “pending” issues for that issue group.&amp;nbsp; If there is a greater than zero amount, it should display Unsatisfactory.&amp;nbsp; The second, nested if statement is supposed to do the exact opposite and is looking for the count of pending issues in the issue group to equal zero, in which case it would display satisfactory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;if you could provide some help I can further explain if it doesn't enough sense.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AudraPayne1_0-1708544418501.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95403iA511A845637F1F31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AudraPayne1_0-1708544418501.png" alt="AudraPayne1_0-1708544418501.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 15:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385104#M54926</guid>
      <dc:creator>AudraPayne1</dc:creator>
      <dc:date>2024-02-26T15:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting code problem</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385477#M54936</link>
      <description>&lt;P&gt;Don't nest the IF statements. They should be separated. If the IF statement isn't satesfied, it just won't display anything.&lt;/P&gt;&lt;P&gt;E.g., &lt;STRONG&gt;&lt;FONT color="#FF9900"&gt;${if my_question&amp;lt;1}Words${/}&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;${if my_question==1}More Words${/}&lt;/FONT&gt;&lt;FONT color="#800080"&gt;${if my_question&amp;gt;1}Less words?${/}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385477#M54936</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-22T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting code problem</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385480#M54937</link>
      <description>&lt;P&gt;Also, regarding logic symbols, equals is &lt;STRONG&gt;==&lt;/STRONG&gt;, and not equals is &lt;STRONG&gt;!=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have a look at &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm" target="_self"&gt;this&lt;/A&gt;. Logical operators are at the bottom of the page (copy-pasted to below).&lt;/P&gt;&lt;DIV class=""&gt;Operator Description &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;||&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if one of two statements returns true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if both given statements return true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;!&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the statement is not true&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;==&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the two given values are equal to each other&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;!=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;True if the two given values are not equal to each other&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is greater than the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;gt;=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is greater than or equal to the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is less than the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;lt;=&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Evaluates whether the first value is less than or equal to the second value&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1385480#M54937</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-22T15:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting code problem</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1386795#M55000</link>
      <description>&lt;P&gt;Hello, thank you for the response. So, I am trying to create a few statements here. Not the best at these. I want this to specify based on the date I am giving it which is "inspection_date_int" tell me if it is Unsatisfactory or Satisfactory for specifically "issuegroup" Pavement Areas between the "mxwostatus", 'COMP' and 'CLOSE'. (we just changed these values)&lt;/P&gt;&lt;P&gt;The issuegroup and mxwostatus comes from the issue layer (please see images below)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it would be better to use the count_pvmnt from the layer BWI Part 139 Inspection but then how would I have it display satisfactory or unsatisfactory because that's what I would like it to show for this statement.&lt;/P&gt;&lt;P&gt;Can you help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AudraPayne1_2-1708961833609.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95819iFDD826C93E51CE7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AudraPayne1_2-1708961833609.png" alt="AudraPayne1_2-1708961833609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AudraPayne1_3-1708962022136.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95823i47EE2E0A5A48BB33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AudraPayne1_3-1708962022136.png" alt="AudraPayne1_3-1708962022136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AudraPayne1_4-1708962151305.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95825iA5258BC8A317A797/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AudraPayne1_4-1708962151305.png" alt="AudraPayne1_4-1708962151305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 15:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1386795#M55000</guid>
      <dc:creator>AudraPayne1</dc:creator>
      <dc:date>2024-02-26T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting code problem</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1386887#M55007</link>
      <description>&lt;P&gt;So, your initial post has a bunch of IF statements that are attempting to test several parameters (i.e., reportdate_int, inspection_date_int, mxwostatus, and issuegroup). But, in your S123 layer above, it appears that your "Pavement Areas" group has already determined if the area is either "unsatisfactory" or "satisfactory". If this determination has already been made in the S123 app, what is the point of the IF statements in the Feature Report? You could just reference "Pavement Areas" alone.&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;"Maybe it would be better to use the count_pvmnt from the layer BWI Part 139 Inspection but then how would I have it display satisfactory or unsatisfactory because that's what I would like it to show for this statement."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;"...where the first one would try to determine if there is a greater than zero count of “pending” issues for that issue group. If there is a greater than zero amount, it should display Unsatisfactory."&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;${if BWI_Part_139.count_pvmnt&amp;gt;0}Unsatisfactory.${/}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;"The second ... is supposed to do the exact opposite and is looking for the count of pending issues in the issue group to equal zero, in which case it would display satisfactory."&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;${if BWI_Part_139.count_pvmnt==0}Satisfactory.${/}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;Then together:&lt;BR /&gt;&lt;STRONG&gt;${if BWI_Part_139.count_pvmnt&amp;gt;0}Unsatisfactory.${/}${if BWI_Part_139.count_pvmnt==0}Satisfactory.${/}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;------------------------&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#00CCFF"&gt;"I want this to specify based on the date I am giving it which is "inspection_date_int" tell me if it is Unsatisfactory or Satisfactory for specifically "issuegroup" Pavement Areas between the "mxwostatus", 'COMP' and 'CLOSE'. (we just changed these values)"&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;Can you please provide the field names, types, and what the interaction looks like?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;E.g., Only where &lt;EM&gt;issuegroup&lt;/EM&gt; equals "Pavement Areas", &lt;EM&gt;reportdate_int&lt;/EM&gt; is less than to equal to &lt;EM&gt;inspection_date_int&lt;/EM&gt;, and mxwostatus is not equal to "Complete" or "Closed".&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;Here is a (maybe) fixed version for your initial IF statement. May help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00CCFF"&gt;&lt;FONT color="#000000"&gt;${if reportdate_int&amp;lt;=BWI_Part_139_Inspection.inspection_date_int &amp;amp;&amp;amp; mxwostatus!="Complete" &amp;amp;&amp;amp; mxwostatus!="Closed" &amp;amp;&amp;amp; issuegroup=="Pavement Areas"}Unsatisfactory.${/}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/reporting-code-problem/m-p/1386887#M55007</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-26T17:21:45Z</dc:date>
    </item>
  </channel>
</rss>

