<?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 expression not working automatically on web app / field app in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555728#M23656</link>
    <description>How to check if editing and calculation are enabled ?&lt;BR /&gt;My service is a feature service with update geometry and attribute&lt;BR /&gt;enabled...&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Nov 2024 09:40:11 GMT</pubDate>
    <dc:creator>yockee</dc:creator>
    <dc:date>2024-11-06T09:40:11Z</dc:date>
    <item>
      <title>Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555346#M23651</link>
      <description>&lt;P&gt;I want to populate an attribute based on another attribute value using arcgis arcade on a web map / field map.&lt;/P&gt;&lt;P&gt;Suppose I have 2 attributes: attribute1 and attribute2. Attribute1 will be updated if Attribute2 has certain value. Here is the code on attribute1:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if ($feature.attribute2 != "b")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return "yy";&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;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return "xy";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The formula is correct. But why attribute1 is not updated automatically when attribute2 is updated / inserted (I update the atribute by changing the column value of atribute2) ?&lt;/P&gt;&lt;P&gt;Here is the screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yockee_0-1730793771936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/118837i014514DB16FADD24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yockee_0-1730793771936.png" alt="yockee_0-1730793771936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 08:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555346#M23651</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2024-11-05T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555354#M23652</link>
      <description>&lt;P&gt;Are you editing via the attribute table or via the form with the arcade calculation?&lt;/P&gt;&lt;P&gt;Updating the table directly typically doesn't invoke the form based calculation.&lt;/P&gt;&lt;P&gt;You need to edit the feature via the form in the web map, field map, or using a widget in an app.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 09:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555354#M23652</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-11-05T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555356#M23653</link>
      <description>I update the table on the web map app. I do not edit the spatial, only edit&lt;BR /&gt;attribute.&lt;BR /&gt;Even using Field Map, the arcade function is not invoked.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Nov 2024 09:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555356#M23653</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2024-11-05T09:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555701#M23654</link>
      <description>&lt;P&gt;I wonder if this " &lt;EM&gt;return "xy";&lt;/EM&gt; "&amp;nbsp; actually modifies the content (attribute) of the feature. Because no errors are reported and the apps working fine but the field is still not changing.&lt;/P&gt;&lt;P&gt;Perhaps the correct thing is this:&lt;/P&gt;&lt;PRE&gt;    return {
        'edit': [{
            'classname' : 'WAT_Hydrant',
            'updates' : [{
                'objectID': hydrant.ObjectID,
                'attributes' : {'INSP_STATUS' : 'OOS'}
            }]
        }]
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;from:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-edit-an-attribute-in-another/m-p/1271016#M67084" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-edit-an-attribute-in-another/m-p/1271016#M67084&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 07:19:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555701#M23654</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2024-11-06T07:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555704#M23655</link>
      <description>&lt;P&gt;Do you have both editing and calculation enabled on the feature in the form? If so, the expression won't run:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION2_5F65DF4B642C4A4D9CAFE6A4BF6BB676" target="_blank"&gt;https://doc.arcgis.com/en/field-maps/latest/prepare-maps/configure-the-form.htm#ESRI_SECTION2_5F65DF4B642C4A4D9CAFE6A4BF6BB676&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 07:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555704#M23655</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-11-06T07:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555728#M23656</link>
      <description>How to check if editing and calculation are enabled ?&lt;BR /&gt;My service is a feature service with update geometry and attribute&lt;BR /&gt;enabled...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Nov 2024 09:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555728#M23656</guid>
      <dc:creator>yockee</dc:creator>
      <dc:date>2024-11-06T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression not working automatically on web app / field app</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555730#M23657</link>
      <description>&lt;P&gt;In the form. Where you have configured the arcade expression to calculate it.&lt;/P&gt;&lt;P&gt;Can you show your form in map viewer and w&lt;SPAN&gt;ere you are applying the edits?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 09:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-not-working-automatically-on-web/m-p/1555730#M23657</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-11-06T09:49:20Z</dc:date>
    </item>
  </channel>
</rss>

