Select to view content in your preferred language

Workaround to update calculated fields after any edit is made?

144
1
04-04-2025 10:40 AM
Labels (2)
JamesPoeschel
Frequent Contributor

My team and I are creating an editing tool in experience builder for a client. Users will create points in the app and scores will be calculated automatically via arcade. User-inputted points will affect other user-inputted points so after creating one point, all the points near it will need to be updated. So, as it stands, after creating a new point in the editor, users then have to click on every other point in the editor to update the data. 

Ideally there would be an action trigger that would update all features after a point is edited or created. But since this doesn't exist, are there any work arounds? The "Set refresh interval" setting in Map Viewer does not achieve this data updating and recreating everything in JS is not an option due to time. Maybe Python Notebooks?

 

0 Kudos
1 Reply
ChristopherCounsell
MVP Regular Contributor

Add a processed field and calculate it to no in your form.

Create a notebook, query the layer where processed=no, then loop through your features. Apply the desired edits then update the feature to processed=yes

Schedule the notebook. Monitor credit usage.

0 Kudos