<?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 Wizards:  Extract value from field.  Possible with Slice or Split? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311657#M53544</link>
    <description>&lt;P&gt;Not sure what you mean by values from field1 and field2.&amp;nbsp; they are numeric, so you want to add them together or return both values as a text string?&lt;/P&gt;&lt;P&gt;Code below returns as a string on two lines:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var dic = '{"field4":{"value":5,"created_at":"2023-07-24T19:45:15Z"},"log":{"value":507,"created_at":"2023-07-24T17:03:02Z"},"field3":{"value":181.44,"created_at":"2023-07-24T19:49:59Z"},"field1":{"value":21.4191,"created_at":"2023-07-24T19:55:02Z"},"field2":{"value":55.996,"created_at":"2023-07-24T19:55:02Z"},"field5":{"value":-45,"created_at":"2023-07-24T19:50:06Z"},"wifi":{"value":"ee:55:a8:0a:40:ef,-38;fe:55:a8:0a:40:ef,-38;ee:55:a8:0a:40:bf,-57;fe:55:a8:0a:40:bf,-58;02:18:4a:8c:49:62,-61","created_at":"2023-07-24T17:07:49Z"}}'
var dicdata = Dictionary(dic)
var f1 = "Field 1 = " + (Text(dicdata.field1.value))
var f2 = "Field 2 = " + Text(dicdata.field2.value)
return Concatenate(f1 + TextFormatting.NewLine + f2)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1690308047233.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76273iBA4BCB89947868BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1690308047233.png" alt="RhettZufelt_0-1690308047233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Should give you an idea of how to get the values from the dictionary string.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 18:02:38 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2023-07-25T18:02:38Z</dc:date>
    <item>
      <title>Arcade Wizards:  Extract values from one field, where all the data is located.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311494#M53533</link>
      <description>&lt;P&gt;I have a field named ("last_values") that updates every five minutes, where a whole bunch of data comes in this one field.&amp;nbsp; See the example data from this field, below.&amp;nbsp; I want to extract into another field, the value (&lt;STRONG&gt;21.4191&lt;/STRONG&gt;) that comes after "field1". Anybody have any ideas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"field4":{"value":5,"created_at":"2023-07-24T19:45:15Z"},"log":{"value":507,"created_at":"2023-07-24T17:03:02Z"},"field3":{"value":181.44,"created_at":"2023-07-24T19:49:59Z"},"field1":{"value":&lt;STRONG&gt;21.4191&lt;/STRONG&gt;,"created_at":"2023-07-24T19:55:02Z"},"field2":{"value":55.996,"created_at":"2023-07-24T19:55:02Z"},"field5":{"value":-45,"created_at":"2023-07-24T19:50:06Z"},"wifi":{"value":"ee:55:a8:0a:40:ef,-38;fe:55:a8:0a:40:ef,-38;ee:55:a8:0a:40:bf,-57;fe:55:a8:0a:40:bf,-58;02:18:4a:8c:49:62,-61","created_at":"2023-07-24T17:07:49Z"}}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 20:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311494#M53533</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-07-25T20:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Wizards:  Extract value from field.  Possible with Slice or Split?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311657#M53544</link>
      <description>&lt;P&gt;Not sure what you mean by values from field1 and field2.&amp;nbsp; they are numeric, so you want to add them together or return both values as a text string?&lt;/P&gt;&lt;P&gt;Code below returns as a string on two lines:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var dic = '{"field4":{"value":5,"created_at":"2023-07-24T19:45:15Z"},"log":{"value":507,"created_at":"2023-07-24T17:03:02Z"},"field3":{"value":181.44,"created_at":"2023-07-24T19:49:59Z"},"field1":{"value":21.4191,"created_at":"2023-07-24T19:55:02Z"},"field2":{"value":55.996,"created_at":"2023-07-24T19:55:02Z"},"field5":{"value":-45,"created_at":"2023-07-24T19:50:06Z"},"wifi":{"value":"ee:55:a8:0a:40:ef,-38;fe:55:a8:0a:40:ef,-38;ee:55:a8:0a:40:bf,-57;fe:55:a8:0a:40:bf,-58;02:18:4a:8c:49:62,-61","created_at":"2023-07-24T17:07:49Z"}}'
var dicdata = Dictionary(dic)
var f1 = "Field 1 = " + (Text(dicdata.field1.value))
var f2 = "Field 2 = " + Text(dicdata.field2.value)
return Concatenate(f1 + TextFormatting.NewLine + f2)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1690308047233.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76273iBA4BCB89947868BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1690308047233.png" alt="RhettZufelt_0-1690308047233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Should give you an idea of how to get the values from the dictionary string.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 18:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311657#M53544</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-07-25T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Wizards:  Extract value from field.  Possible with Slice or Split?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311755#M53547</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;Thank you for the example.&amp;nbsp; I have clarified my original post, to better describe what I am trying to do.&lt;/P&gt;&lt;P&gt;I am working on understanding your example -&amp;nbsp; I have tried the below and got the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmstKP_1-1690316070880.png" style="width: 511px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76300i32B76223B00A4751/image-dimensions/511x350?v=v2" width="511" height="350" role="button" title="ArmstKP_1-1690316070880.png" alt="ArmstKP_1-1690316070880.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>Tue, 25 Jul 2023 20:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311755#M53547</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-07-25T20:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Wizards:  Extract values from one field, where all the data is located.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311803#M53549</link>
      <description>&lt;P&gt;This works for me in form calculation and popup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var dic = $feature.last_values
var dicvar = Dictionary(dic)
return dicvar.field1.value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per your modified question, this returns the field1.value and returns as a number (21.4191)&lt;/P&gt;&lt;P&gt;Field Maps calculated value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_1-1690323857449.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76305i48FA6753C4CE3E1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_1-1690323857449.png" alt="RhettZufelt_1-1690323857449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Popup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1690323715824.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76304iA98F08F5815F029E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1690323715824.png" alt="RhettZufelt_0-1690323715824.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 22:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-wizards-extract-values-from-one-field-where/m-p/1311803#M53549</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-07-25T22:27:50Z</dc:date>
    </item>
  </channel>
</rss>

