<?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: How to reset a field in all records (features) in a layer using EB in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621052#M19185</link>
    <description>&lt;P&gt;In the coming release(2025 summer), the Edit widget includes a batch editing feature.&lt;/P&gt;&lt;P&gt;Or you can develop a custom widget with JSAPI's "FeatureForm" widget and the REST API's "applyEdits".&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/experience-builder/guide/getting-started-widget/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/getting-started-widget/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 01:49:58 GMT</pubDate>
    <dc:creator>Allen_Zhang</dc:creator>
    <dc:date>2025-06-05T01:49:58Z</dc:date>
    <item>
      <title>How to reset a field in all records (features) in a layer using EB</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1620964#M19180</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;&lt;P&gt;How can I add in an EB application for editors/administrators the following functionality to a specific layer.&amp;nbsp; Reset a field to a default value, "No".&lt;/P&gt;&lt;P&gt;How will you implement this?&amp;nbsp; What type of widget do you recommend?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Python and ArcGIS Pro and Notebook I will do something like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;feature_class = "your_feature_class"&lt;/P&gt;&lt;P&gt;with arcpy.da.UpdateCursor(feature_class, ["Flag"]) as cursor:&lt;BR /&gt;&amp;nbsp; for row in cursor:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; row[0] = "" # Set the "Flag" field to an empty string&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cursor.updateRow(row)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1620964#M19180</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2025-06-04T19:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a field in all records (features) in a layer using EB</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621052#M19185</link>
      <description>&lt;P&gt;In the coming release(2025 summer), the Edit widget includes a batch editing feature.&lt;/P&gt;&lt;P&gt;Or you can develop a custom widget with JSAPI's "FeatureForm" widget and the REST API's "applyEdits".&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/experience-builder/guide/getting-started-widget/" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/getting-started-widget/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 01:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621052#M19185</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-06-05T01:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a field in all records (features) in a layer using EB</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621280#M19200</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/832963"&gt;@Allen_Zhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also regular Web Maps have a feature that allows to run a Calculate Field&amp;nbsp; in a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking about adding an analysis widget and running a a Geoprocessing Tool to Run Calculate Field on a Hosted Feature Layer in ArcGIS Online (AGOL).&lt;BR /&gt;&lt;BR /&gt;Something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;/P&gt;&lt;P&gt;# Connect to AGOL&lt;BR /&gt;gis = GIS("home")&lt;/P&gt;&lt;P&gt;# Get the feature service item&lt;BR /&gt;item = gis.content.get("YOUR_FEATURE_SERVICE_ITEM_ID")&lt;BR /&gt;layer = item.layers[0] # or use layer name&lt;/P&gt;&lt;P&gt;# Query features&lt;BR /&gt;features = layer.query(where="1=1").features&lt;/P&gt;&lt;P&gt;# Update field values&lt;BR /&gt;for feature in features:&lt;BR /&gt;# Example calculation: FieldC = FieldA + FieldB&lt;BR /&gt;feature.attributes["FieldC"] = feature.attributes["FieldA"] + feature.attributes["FieldB"]&lt;/P&gt;&lt;P&gt;# Apply edits&lt;BR /&gt;layer.edit_features(updates=features)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 18:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621280#M19200</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2025-06-05T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to reset a field in all records (features) in a layer using EB</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621429#M19209</link>
      <description>&lt;P&gt;Also a good solution!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 02:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/how-to-reset-a-field-in-all-records-features-in-a/m-p/1621429#M19209</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-06-06T02:38:54Z</dc:date>
    </item>
  </channel>
</rss>

