<?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: Calculated expression works in AGOL web map, but not in field maps in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603382#M10694</link>
    <description>&lt;P&gt;you are missing the field name here. start there&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;relatedrecords&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByRelationshipName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'BikePedCountRecords_122023'&lt;/SPAN&gt;&lt;SPAN&gt;,['AddFieldName'], false)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 18:35:45 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2025-04-07T18:35:45Z</dc:date>
    <item>
      <title>Calculated expression works in AGOL web map, but not in field maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603372#M10693</link>
      <description>&lt;P&gt;I've got an expression which I use to update a status field for a point feature layer (BikePedCountSites). The expression takes the status value from the most recent related record (BikePedCountRecords), which then allows me to symbolize the point features by if they are "Active" or "Done". I felt very proud of myself when I got this to work in the web map. I am able to update the related record and the expression updates the status value for the point layer. However, when I went to update and add new records using field maps the expression fails to calculate and does not update the status field of the point layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;relatedrecords&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByRelationshipName&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;'BikePedCountRecords_122023'&lt;/SPAN&gt;&lt;SPAN&gt;,)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;sortedrecords&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;OrderBy&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;relatedrecords&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'DatetimeInstalled Desc'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;latestrecord&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sortedrecords&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;latestrecord&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'Status'&lt;/SPAN&gt;&lt;SPAN&gt;]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603372#M10693</guid>
      <dc:creator>TyrelBorowitz</dc:creator>
      <dc:date>2025-04-07T18:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression works in AGOL web map, but not in field maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603382#M10694</link>
      <description>&lt;P&gt;you are missing the field name here. start there&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;relatedrecords&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByRelationshipName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'BikePedCountRecords_122023'&lt;/SPAN&gt;&lt;SPAN&gt;,['AddFieldName'], false)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603382#M10694</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2025-04-07T18:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression works in AGOL web map, but not in field maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603842#M10704</link>
      <description>&lt;P&gt;That did it. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 16:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculated-expression-works-in-agol-web-map-but/m-p/1603842#M10704</guid>
      <dc:creator>TyrelBorowitz</dc:creator>
      <dc:date>2025-04-08T16:44:58Z</dc:date>
    </item>
  </channel>
</rss>

