<?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: New Map Viewer - Configure POP UP Expressions in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/new-map-viewer-configure-pop-up-expressions/m-p/1153066#M12094</link>
    <description>&lt;P&gt;If this is just in a popup, can you simply do&lt;/P&gt;&lt;PRE&gt;return total&lt;/PRE&gt;&lt;P&gt;instead?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 20:19:11 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-03-11T20:19:11Z</dc:date>
    <item>
      <title>New Map Viewer - Configure POP UP Expressions</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/new-map-viewer-configure-pop-up-expressions/m-p/1153065#M12093</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;- so close.&amp;nbsp; This arcade expression works great. Thank you very much. However, I have tried several ways to change the return to only display the number of complaints, but I cannot figure it out.&amp;nbsp; This is what the current return looks like:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnettePoole1_0-1647029380034.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36173i7C34114AF329A94E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnettePoole1_0-1647029380034.png" alt="AnnettePoole1_0-1647029380034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Since I already have "TotalComplaints"&amp;nbsp; I do not need "total" just the "3".&amp;nbsp; In my various attempts, I either displayed nothing at all or just the word total.&amp;nbsp; But all I want is the number.&amp;nbsp; I tried to manipulate the "total: total" in the return section. I also attempted to delete the "total" in the for loop. No luck as I don't understand it that well obviously.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;var sum_fields = [&lt;BR /&gt;$feature.complaint,&lt;BR /&gt;$feature.complaint1,&lt;BR /&gt;$feature.complaint2,&lt;BR /&gt;$feature.complaint3,&lt;BR /&gt;$feature.complaint4,&lt;BR /&gt;$feature.complaint5,&lt;BR /&gt;$feature.complaint6,&lt;BR /&gt;$feature.complaint7,&lt;BR /&gt;$feature.complaint8,&lt;BR /&gt;$feature.complaint9,&lt;BR /&gt;$feature.complaint10&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;var total = 0&lt;/P&gt;&lt;P&gt;for (var s in sum_fields){&lt;BR /&gt;If (!IsEmpty(sum_fields[s])){&lt;BR /&gt;total += 1&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;&amp;nbsp;total: total&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 20:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/new-map-viewer-configure-pop-up-expressions/m-p/1153065#M12093</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-11T20:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: New Map Viewer - Configure POP UP Expressions</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/new-map-viewer-configure-pop-up-expressions/m-p/1153066#M12094</link>
      <description>&lt;P&gt;If this is just in a popup, can you simply do&lt;/P&gt;&lt;PRE&gt;return total&lt;/PRE&gt;&lt;P&gt;instead?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 20:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/new-map-viewer-configure-pop-up-expressions/m-p/1153066#M12094</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-03-11T20:19:11Z</dc:date>
    </item>
  </channel>
</rss>

