I am looking to use dynamic text to show a count of an attribute set to "No".
I created a view for this clause.
I added a text widget and connected it to the data.
Set up the expression:
This works and shows the correct count when the app loads.
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:
The only way to get the number to update is to refresh the app in the browser.
Is there a way to accomplish this?
Solved! Go to Solution.
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?)
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
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.
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 Looks like you found a secret button. Care to write it up for the Tips and Tricks Board?
Maybe I will if I find some time to experiment! If you or anyone else reading this wants to take it though, please do!
I already did, it is waiting for review.
@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.
@JeffreyThompson2Here is the link.
When I submitted it, it said it was submitted for review.
That was it. I was not aware the app had a refresh interval too.
Thanks!