<?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: Return text after specific character with Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197356#M47162</link>
    <description>&lt;P&gt;Thanks for bringing that to my attention! I made a copy of my original data and shared that as a web layer to AGO. The original data contains coded values and unfortunately the copy did not write the text to my new field as I assumed it had. So as it stands there is nothing in the field to split. My plan is to use a series of if statements to populate the data I need unless there is a simpler way.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1659103044625.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47215i47A9C0F92DAF3B9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1659103044625.png" alt="SarahHartholt_0-1659103044625.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="SarahHartholt_1-1659103090402.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47216i79D31BC2F96BF892/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_1-1659103090402.png" alt="SarahHartholt_1-1659103090402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 14:13:35 GMT</pubDate>
    <dc:creator>SarahHartholt</dc:creator>
    <dc:date>2022-07-29T14:13:35Z</dc:date>
    <item>
      <title>Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133113#M43720</link>
      <description>&lt;P&gt;I am doing a Cityworks and Problem Reporter (AGOL) integration. I have set up two-way communication between both services but when a comment is added in Cityworks it populates the comment field in the public feature layer of Problem Reporter with a lot of extra information that is not needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I need to add a new field, Comments_public for example, I'm okay with that. I would like for only the actual comment to show up in the comment field&amp;nbsp; instead of listing the employee, date and time as it is showing currently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AriLukas_1-1642023589814.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31331i475096CFDD723A4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AriLukas_1-1642023589814.png" alt="AriLukas_1-1642023589814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was able to do the above in excel using the formula: &lt;EM&gt;=RIGHT(A2,LEN(A2)-SEARCH(":",A2)-9)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;However, I have yet to figured out a way to do it using Arcade. I found a formula that got me close (shown below) but unfortunately&amp;nbsp; I got everything up to the first " :" (&lt;EM&gt;By Lukas, Ari 1/11/2022 3&lt;/EM&gt;) instead.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var array = Split($feature.StaffComments, ":");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if (Count(array) ==2) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return Trim(array[1]);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return Trim(array[0]);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 21:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133113#M43720</guid>
      <dc:creator>AriLukas</dc:creator>
      <dc:date>2022-01-12T21:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133334#M43729</link>
      <description>&lt;P&gt;Your example comment has four components when split by ":"&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;By Lukas, Ari 1/11/2022 3&lt;/LI&gt;&lt;LI&gt;52&lt;/LI&gt;&lt;LI&gt;42 PM&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;TEST COMMENTS&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You code should be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var array = Split($feature.StaffComments, ":");
if (Count(array) == 4) {
  return Trim(array[3]);
}
else {
  return Trim(array[0]);
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133334#M43729</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-01-13T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133354#M43731</link>
      <description>&lt;P&gt;You can do this pretty simply with &lt;STRONG&gt;Pop&lt;/STRONG&gt;, which will return the last item in an array, regardless of its length.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var arr = Split($feature.StaffComments, ":");

return Pop(arr)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1642083410703.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31411i8CEDC4FBB142E3A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1642083410703.png" alt="jcarlson_0-1642083410703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1133354#M43731</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-13T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1134006#M43774</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp; both those worked thank you! I'm going with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;due to it's simplicity. Thank you both again!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 18:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1134006#M43774</guid>
      <dc:creator>AriLukas</dc:creator>
      <dc:date>2022-01-14T18:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197101#M47154</link>
      <description>&lt;P&gt;I'm trying to use the&amp;nbsp;&lt;EM&gt;Pop&lt;/EM&gt; method to return "Environmental Protection" in my pop-up but instead it returns "EP". Can someone please let me know why the text before the dash is being returned?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1659041206491.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47139i60624CA143F09C7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1659041206491.png" alt="SarahHartholt_0-1659041206491.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="SarahHartholt_2-1659041250867.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47141i99A7E83D8F527FBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_2-1659041250867.png" alt="SarahHartholt_2-1659041250867.png" /&gt;&lt;/span&gt;&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="SarahHartholt_1-1659041232509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47140i3E7D48EF740D782A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_1-1659041232509.png" alt="SarahHartholt_1-1659041232509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 20:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197101#M47154</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2022-07-28T20:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197304#M47159</link>
      <description>&lt;P&gt;Are you using domains for this field? If so, you'd have to use &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#domaincode" target="_self"&gt;DomainCode&lt;/A&gt; inside the Split function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 11:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197304#M47159</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-07-29T11:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Return text after specific character with Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197356#M47162</link>
      <description>&lt;P&gt;Thanks for bringing that to my attention! I made a copy of my original data and shared that as a web layer to AGO. The original data contains coded values and unfortunately the copy did not write the text to my new field as I assumed it had. So as it stands there is nothing in the field to split. My plan is to use a series of if statements to populate the data I need unless there is a simpler way.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1659103044625.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47215i47A9C0F92DAF3B9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1659103044625.png" alt="SarahHartholt_0-1659103044625.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="SarahHartholt_1-1659103090402.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47216i79D31BC2F96BF892/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_1-1659103090402.png" alt="SarahHartholt_1-1659103090402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/return-text-after-specific-character-with-arcade/m-p/1197356#M47162</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2022-07-29T14:13:35Z</dc:date>
    </item>
  </channel>
</rss>

