<?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 Better Pop Up Arcade Expression? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/better-pop-up-arcade-expression/m-p/157400#M7105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Is there a way to create one Arcade expression that could be applied across multiple attributes instead of creating an expression for each one?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have a feature layer and it has, let's say, 20 attributes. If there is a NULL I want the pop up to display "No observations", and if there is data, display said data. Right now I currently have to make an Arcade expression for each attribute. Here is my expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($feature.Est0 == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text('No observations')&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text($feature.Est0, '#,###')&lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now instead of copying and pasting this expression 20 times and just changing what attribute it applies to is there a way to just do it with one? This also applies to AGOL to and there is a post there too (&lt;A _jive_internal="true" href="https://community.esri.com/thread/233560-one-pop-up-expression-for-multiple-attributes"&gt;One Pop Up Expression for Multiple Attributes?&lt;/A&gt;).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way I thought of doing this too was actually changing the Data Type in the table for each attribute to text so I can just put "No observations" in the table but this created other problems I will post separately.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2019 19:41:44 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-05-10T19:41:44Z</dc:date>
    <item>
      <title>Better Pop Up Arcade Expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/better-pop-up-arcade-expression/m-p/157400#M7105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Is there a way to create one Arcade expression that could be applied across multiple attributes instead of creating an expression for each one?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have a feature layer and it has, let's say, 20 attributes. If there is a NULL I want the pop up to display "No observations", and if there is data, display said data. Right now I currently have to make an Arcade expression for each attribute. Here is my expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($feature.Est0 == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text('No observations')&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text($feature.Est0, '#,###')&lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now instead of copying and pasting this expression 20 times and just changing what attribute it applies to is there a way to just do it with one? This also applies to AGOL to and there is a post there too (&lt;A _jive_internal="true" href="https://community.esri.com/thread/233560-one-pop-up-expression-for-multiple-attributes"&gt;One Pop Up Expression for Multiple Attributes?&lt;/A&gt;).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One way I thought of doing this too was actually changing the Data Type in the table for each attribute to text so I can just put "No observations" in the table but this created other problems I will post separately.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 19:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/better-pop-up-arcade-expression/m-p/157400#M7105</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-10T19:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Better Pop Up Arcade Expression?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/better-pop-up-arcade-expression/m-p/157401#M7106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See answer here:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/233560-one-pop-up-expression-for-multiple-attributes"&gt;https://community.esri.com/thread/233560-one-pop-up-expression-for-multiple-attributes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 15:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/better-pop-up-arcade-expression/m-p/157401#M7106</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-13T15:56:53Z</dc:date>
    </item>
  </channel>
</rss>

