<?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:  How to find string/phrase with apostrophe, ie.  can't in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068377#M40619</link>
    <description>&lt;P&gt;You can use "\" to escape individual characters, too, though simply swapping double quotes is probably simpler.&lt;/P&gt;&lt;PRE&gt;'Can\'t Find Curb Tie'&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Jun 2021 14:24:38 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-06-15T14:24:38Z</dc:date>
    <item>
      <title>Arcade:  How to find string/phrase with apostrophe, ie.  can't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068369#M40617</link>
      <description>&lt;P&gt;I am trying to find features that have value in a field that has an apostrophe.&amp;nbsp; How does one do this?&lt;/P&gt;&lt;P&gt;Here is what I have, but it won't work because of the apostrophe in Can't:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else if ( $feature["media_type"] == 'Can&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;t Find Curb Tie') {&lt;BR /&gt;return "Can't Find Curb Tie"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068369#M40617</guid>
      <dc:creator>KellyArmstrong</dc:creator>
      <dc:date>2021-06-15T14:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  How to find string/phrase with apostrophe, ie.  can't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068371#M40618</link>
      <description>&lt;P&gt;Try changing the single quotes to double quotes around the string you are trying to find&lt;/P&gt;&lt;P&gt;"Can't Find Curb Tie"&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068371#M40618</guid>
      <dc:creator>ReeseFacendini</dc:creator>
      <dc:date>2021-06-15T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  How to find string/phrase with apostrophe, ie.  can't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068377#M40619</link>
      <description>&lt;P&gt;You can use "\" to escape individual characters, too, though simply swapping double quotes is probably simpler.&lt;/P&gt;&lt;PRE&gt;'Can\'t Find Curb Tie'&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1068377#M40619</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-15T14:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade:  How to find string/phrase with apostrophe, ie.  can't</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1217281#M48116</link>
      <description>&lt;P&gt;I tried to use Arcade's Filter function but it failed to create a proper sql statement with the single apostrophes (working in Hebrew, so this may be an added factor).&lt;/P&gt;&lt;P&gt;So I used the above to create a loop with an if statement to mimic the filter function on my tables.&amp;nbsp; This queries a lookup table and finds a specific value, to grab the corresponding attributes:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;var plantname = $feature["L_PlantHebName"]   //input value

var tbl = FeatureSetByName($datastore,"PlantLookupTable", ['PlantHebName', 'PlantCode'], false)  

var fixed_name = Replace(plantname, "'", "\'")
for (var table_row in tbl){
  if(table_row.PlantHebName == fixed_name ){
    return table_row.PlantCode
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-how-to-find-string-phrase-with-apostrophe/m-p/1217281#M48116</guid>
      <dc:creator>rachelm</dc:creator>
      <dc:date>2022-09-29T08:36:22Z</dc:date>
    </item>
  </channel>
</rss>

