<?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: Pro - Arcade Labeling - Replace &amp;amp;amp; Concatenate in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042009#M8321</link>
    <description>&lt;P&gt;Thank you! Super helpful! I was able to return the product quickly without having to dive into the material, which I will start doing. Do you have any recommendations - tutorials, sources?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 17:09:42 GMT</pubDate>
    <dc:creator>JessicaJThompson</dc:creator>
    <dc:date>2021-03-30T17:09:42Z</dc:date>
    <item>
      <title>Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041570#M8318</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;New to arcade &amp;amp; pro (and fairly terrible at code). Thank you in advance for you kindness &amp;amp; assistance.&lt;/P&gt;&lt;P&gt;I have pieced together a few things from other posts, but am still having issues. I have a request to replace labels in a map on data I cannot and do not want to edit. I just want to change the acronym used in the data to the desired label.&lt;/P&gt;&lt;P&gt;1) I am currently using the concatenate command, which is working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate($feature.FD,'-',$feature.Station)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JessicaThompson1_0-1617029877021.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9558iD2A571040DD1A5C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JessicaThompson1_0-1617029877021.png" alt="JessicaThompson1_0-1617029877021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) I need to replace the $feature.FD label 'SF&amp;amp;ES' with 'SFD' in that field. When I try the replace command&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Replace($feature.FD, "SF&amp;amp;ES","SFD")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It does work but I cannot get the two commands to work together correctly&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JessicaThompson1_2-1617031213422.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9560iB0F590DD2714FB20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JessicaThompson1_2-1617031213422.png" alt="JessicaThompson1_2-1617031213422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) When combined:&lt;/P&gt;&lt;P&gt;Replace($feature.FD, "SF&amp;amp;ES","SFD")+&lt;BR /&gt;Concatenate($feature.FD,'-',$feature.Station)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JessicaThompson1_1-1617031002928.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9559i944C2B649147A65A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JessicaThompson1_1-1617031002928.png" alt="JessicaThompson1_1-1617031002928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or in reverse order&lt;/P&gt;&lt;P&gt;Concatenate($feature.FD,'-',$feature.Station)+&lt;BR /&gt;Replace($feature.FD, "SF&amp;amp;ES","SFD")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JessicaThompson1_3-1617031591705.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9561i6E72D0521F0E4AD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JessicaThompson1_3-1617031591705.png" alt="JessicaThompson1_3-1617031591705.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041570#M8318</guid>
      <dc:creator>JessicaJThompson</dc:creator>
      <dc:date>2021-03-29T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041573#M8319</link>
      <description>&lt;P&gt;I would set a variable first to pass the new ID and then concatenate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var label = Replace($feature.FD, "SF&amp;amp;ES","SFD")
return Concatenate(label,'-',$feature.Station)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041573#M8319</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-29T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041574#M8320</link>
      <description>&lt;P&gt;It's important to note that calling &lt;STRONG&gt;Replace&lt;/STRONG&gt; does not actually change the value stored in &lt;EM&gt;$feature.FD, &lt;/EM&gt;so calling that attribute elsewhere will always return the unreplaced value.&lt;/P&gt;&lt;P&gt;To accomplish what you're trying to do, you can either nest your functions, or else use a temporary variable.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;var fd = Replace($feature.FD, "SF&amp;amp;ES", "SFD")

Concatenate(fd,'-',$feature.Station)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Or&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Concatenate(Replace($feature.FD, "SF&amp;amp;ES", "SFD"), '-', $feature.Station)&lt;/LI-CODE&gt;&lt;P&gt;Myself, I prefer using variables to keep the code a bit easier to read.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1041574#M8320</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-29T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042009#M8321</link>
      <description>&lt;P&gt;Thank you! Super helpful! I was able to return the product quickly without having to dive into the material, which I will start doing. Do you have any recommendations - tutorials, sources?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042009#M8321</guid>
      <dc:creator>JessicaJThompson</dc:creator>
      <dc:date>2021-03-30T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042012#M8322</link>
      <description>&lt;P&gt;Appreciate you taking the time to provide to options, and the extra information on why it may not change using the replace command! Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042012#M8322</guid>
      <dc:creator>JessicaJThompson</dc:creator>
      <dc:date>2021-03-30T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pro - Arcade Labeling - Replace &amp;amp; Concatenate</title>
      <link>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042032#M8323</link>
      <description>&lt;P&gt;ESRI training videos were a good starting point for me (&lt;A href="https://www.esri.com/training/catalog/search/" target="_blank"&gt;Esri Training Catalog&amp;nbsp;| Find Courses on GIS and ArcGIS Topics&lt;/A&gt;), just type in arcade! I also browse the community forums to see what others have struggled with and test out code in the arcade playground (&lt;A href="https://developers.arcgis.com/arcade/playground/" target="_blank"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/pro-arcade-labeling-replace-amp-amp-concatenate/m-p/1042032#M8323</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-30T17:32:58Z</dc:date>
    </item>
  </channel>
</rss>

