<?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: Arcade expression to display two concatenated fields with domains in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147515#M44576</link>
    <description>&lt;P&gt;Did you get anything in the messages tab?&lt;/P&gt;&lt;P&gt;Also, where is this data coming from? Is it possible that the source portal is at a lower version with fewer capabilities in Arcade?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 14:27:48 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-02-24T14:27:48Z</dc:date>
    <item>
      <title>Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147464#M44570</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to arcade so forgive me if the answer is way too obvious to everyone...&lt;/P&gt;&lt;P&gt;I'm trying to use arcade to change the symbology so it displays two different fields, each one with its own domain.&lt;/P&gt;&lt;P&gt;The fields are cleanseStatus and cycle. Both have a domain as well&lt;/P&gt;&lt;P&gt;I have used the expression:&lt;/P&gt;&lt;P&gt;($feature.cleanseStatus) + "," + ($feature.cycle)&lt;/P&gt;&lt;P&gt;But I only get the code for the cleanse status, and nothing for the cycle and also get the code for the different cleanseStatus and not the description.&lt;/P&gt;&lt;P&gt;Ideally I would like to see the cleanse status code description, then a coma, and then the cycle code description so I can adjust the symbology for each one independently.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 11:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147464#M44570</guid>
      <dc:creator>AlbertJordana</dc:creator>
      <dc:date>2022-02-24T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147465#M44571</link>
      <description>&lt;P&gt;Quick update.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using the following expression I get the code for each field, but not the description..&lt;/P&gt;&lt;P&gt;DomainName($feature,"cleanseStatus") + ',' + DomainName($feature,"cycle")&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 11:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147465#M44571</guid>
      <dc:creator>AlbertJordana</dc:creator>
      <dc:date>2022-02-24T11:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147480#M44572</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have tried this way: DomainName($feature,"Field1") + "," + DomainName($feature,"Field2") but with my data, and it works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Feb 2022 13:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147480#M44572</guid>
      <dc:creator>Hala_Ghareeb</dc:creator>
      <dc:date>2022-02-27T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147487#M44573</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/469987"&gt;@Hala_Ghareeb&lt;/a&gt;&amp;nbsp; has what ought to be the solution here, but it's odd that it wouldn't work for your data.&lt;/P&gt;&lt;P&gt;My only suggestion in addition to that would be to use a backtick string and some variables to help keep the code a bit clearer.&lt;/P&gt;&lt;P&gt;Try this expression and click &lt;STRONG&gt;Test &lt;/STRONG&gt;in the expression builder, then see what the &lt;STRONG&gt;Messages&lt;/STRONG&gt; tab shows you.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var status = DomainName($feature, 'cleanseStatus')
var cycle = DomainName($feature, 'cycle')

// Send variables to console to check their values
Console(status)
Console(cycle)

// Return formatted string
return `${status}, ${cycle}`&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Feb 2022 13:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147487#M44573</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-24T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147488#M44574</link>
      <description>&lt;P&gt;I get this error&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN class=""&gt;"Parse Error:&lt;/SPAN&gt;Line 9: Unexpected token ILLEGAL"&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;The funny thing is that I have tried with another dataset and the previous expressions works just fine, so I don't know what's preventing from returning correctly for this dataset&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Feb 2022 13:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147488#M44574</guid>
      <dc:creator>AlbertJordana</dc:creator>
      <dc:date>2022-02-24T13:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to display two concatenated fields with domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147515#M44576</link>
      <description>&lt;P&gt;Did you get anything in the messages tab?&lt;/P&gt;&lt;P&gt;Also, where is this data coming from? Is it possible that the source portal is at a lower version with fewer capabilities in Arcade?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 14:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-to-display-two-concatenated/m-p/1147515#M44576</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-24T14:27:48Z</dc:date>
    </item>
  </channel>
</rss>

