<?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 symbology help in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559222#M90185</link>
    <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text&lt;/A&gt; function's formatting parameter "A" to return "AM" or "PM" for symbolizing the points.&lt;/P&gt;&lt;P&gt;Here's an example. These points are labeled with the Collection time field (FishDate in my data) and I use this expression to symbolize them.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text($feature.FishDate, 'A')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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="Snag_c77e01.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119660i1C4EBD54E6F98E08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_c77e01.png" alt="Snag_c77e01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you click Run in the Expression editor, it uses the first record in the dataset to evaluate the code. Clicking Done will run the code on the entire dataset (or at least the first thousand or so records) to build the symbology&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 16:42:45 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2024-11-15T16:42:45Z</dc:date>
    <item>
      <title>Arcade symbology help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559215#M90184</link>
      <description>&lt;P&gt;Hello! I am struggling to write an Arcade expression that will symbolize point features based on the time value in a datetime field. I want to group the features by either AM or PM. I've tried extracting the time values using Time() which returns them as text ("08:00:00" or "12:00:00"), and then using Find() to recognize the text&amp;nbsp; and return another text ("AM" or "PM"), but it's still not working (see code below):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;timeString&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Time&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TARGET_START_DATE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Find&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"08"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;timeString&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"AM"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;Find&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"12"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;timeString&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"PM"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this returns "AM" -- is this just the result for one feature in a feature class? because when I click Done to see if it applies itself to the dataset as a whole, I get an error message. I thought maybe it has to be in a loop, but for some reason the = in the var timeString becomes an unexpected token. I'm really stumped, and any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Nov 2024 16:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559215#M90184</guid>
      <dc:creator>MarinaWinkler</dc:creator>
      <dc:date>2024-11-15T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade symbology help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559222#M90185</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text&lt;/A&gt; function's formatting parameter "A" to return "AM" or "PM" for symbolizing the points.&lt;/P&gt;&lt;P&gt;Here's an example. These points are labeled with the Collection time field (FishDate in my data) and I use this expression to symbolize them.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text($feature.FishDate, 'A')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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="Snag_c77e01.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119660i1C4EBD54E6F98E08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_c77e01.png" alt="Snag_c77e01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you click Run in the Expression editor, it uses the first record in the dataset to evaluate the code. Clicking Done will run the code on the entire dataset (or at least the first thousand or so records) to build the symbology&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 16:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559222#M90185</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-11-15T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade symbology help</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559250#M90186</link>
      <description>&lt;P&gt;you're amazing!! it worked, thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 17:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-symbology-help/m-p/1559250#M90186</guid>
      <dc:creator>MarinaWinkler</dc:creator>
      <dc:date>2024-11-15T17:16:21Z</dc:date>
    </item>
  </channel>
</rss>

