Select to view content in your preferred language

Dynamic text refresh interval.

239
9
Jump to solution
2 weeks ago
KGalluccio
Regular Contributor

I am looking to use dynamic text to show a count of an attribute set to "No".

I created a view for this clause.

KGalluccio_1-1745330917481.png

I added a text widget and connected it to the data.

KGalluccio_2-1745330952488.png

Set up the expression:

KGalluccio_3-1745331124431.png


This works and shows the correct count when the app loads.

KGalluccio_4-1745331179302.png


The problem I am encountering is when I make an update in the app to this attribute by setting one of the features completed work to "Yes", this number does not update.
I have also set the refresh interval on the layer in the map to 30 seconds:

KGalluccio_6-1745331550259.png

 


Yet this number does not change. 

The only way to get the number to update is to refresh the app in the browser.


Is there a way to accomplish this?

 

 

 

0 Kudos
1 Solution

Accepted Solutions
NicoleJohnson
Frequent Contributor

What happens if you try modifying the refresh settings within Experience Builder? (I have no idea what this will do if the refresh interval on the actual service is higher/more time, so maybe both have to be 0.5 minutes?)

NicoleJohnson_0-1745417074104.png

 

View solution in original post

0 Kudos
9 Replies
Ke_Xu
by Esri Contributor
Esri Contributor

Hi @KGalluccio,

I couldn't reproduce the issue after editing the attribute using the Map Viewer or the Edit widget.

After setting the Refresh interval, could you save the app?

 

Thanks,

Ke

0 Kudos
KGalluccio
Regular Contributor

Yes, after setting the refresh interval I saved the app.

I made the app public.

It has two maps.  The main map is set up to filter the points based on zoom level.  So I added the second map to base the count off of.

When you load the app take note of the count in the light blue box.
Select any point from the map or the list. Update the Work Completed to Yes and click update.

Notice the count does not change.  It will only change if you refresh the web page.

0 Kudos
NicoleJohnson
Frequent Contributor

What happens if you try modifying the refresh settings within Experience Builder? (I have no idea what this will do if the refresh interval on the actual service is higher/more time, so maybe both have to be 0.5 minutes?)

NicoleJohnson_0-1745417074104.png

 

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

@NicoleJohnson Looks like you found a secret button. Care to write it up for the Tips and Tricks Board?

GIS Developer
City of Arlington, Texas
0 Kudos
NicoleJohnson
Frequent Contributor

Maybe I will if I find some time to experiment! If you or anyone else reading this wants to take it though, please do!

0 Kudos
KGalluccio
Regular Contributor

I already did, it is waiting for review.

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

@KGalluccio I can't find it. Are you sure you submitted it? It looks like you just joined the group, maybe it will show up soon.

GIS Developer
City of Arlington, Texas
0 Kudos
KGalluccio
Regular Contributor

@JeffreyThompson2Here is the link.
When I submitted it, it said it was submitted for review. 

0 Kudos
KGalluccio
Regular Contributor

That was it.  I was not aware the app had a refresh interval too.

Thanks!

0 Kudos