Select to view content in your preferred language

Display the latest Polygon Created on ExB app

150
2
05-06-2025 04:04 AM
galiGIS
Emerging Contributor

Hello,

I'm working on an ExB app that allows users to create polygons. My aim is to always display the latest polygon created by users, regardless of who created it. I have been doing some research and found the following thread that suggests it is possible using View layers, but I can't get it to work as still shows all the polygons (instead of the latest):

https://community.esri.com/t5/arcgis-online-documents/display-latest-feature-in-a-feature-service/ta...

I have tried filters already but the 'creation_date' expressions doesn't allow me to pick 'last' at all.

Has anyone been able to display always the latest polygon in a ExB app?

Any idea / help more than welcome

I'm on ArcGIS Enterprise Version: 11.3.0 (build 51575)

0 Kudos
2 Replies
berniejconnors
Frequent Contributor

Can you filter on another attribute?  Are the polygons assigned a sequential objectID?  Could you filter for the largest (e.g. newest) objectID?

 

Here is a similar example from my own work:

I have a Notebook that writes records to an AGOL hosted table.  I truncate the data to the 2000 most recent records.  This means the oldest record has objectID = 1 and the newest record has objectID = 2000.  I use these objectID values to filter data in an ArcGIS Dashboard.

 

Bernie.

galiGIS
Emerging Contributor

Thanks @berniejconnors I could filter by another field yes...but I initially was thinking to filter it by date. And also yes, polygons assigned a sequential objectID.

I will look into your approach see if I can replicate your dashboard idea.

Thanks

0 Kudos