Using ArcGIS Pro - Connected to enterprise database, and the featureclass is in the enterprise database.
When does a definition query on a layer update? I have two versions of the same featureclass in a map: one layer has a definition query and the other does not.
After completing an edit on the non-definition query layer (on the field the definition query is looking for) the definition query layer doesn't update. However, when restarting ArcGIS Pro the layer updates. Is there a way to update the layer without restarting the entire program?
What I've tried:
Happy to provide additional information; please be specific.
I tend not to use definition queries, but sometimes display filters,
Use display filters—ArcGIS Pro | Documentation
however, there is a toggle for layers (layer properties, general) which is off by default, toggle it on for a suitable time interval and see if it has any effect
I've used similar approach to what you describe - I think what you are looking for is the refresh button down in the lower right part of the map window - after you have made updates, hit that and it should refresh all layers in your map, this has always worked for me.
Hi clt_cabq,
Thank you for the kind reply. This is one of the solutions I tried, described in my first post, and it is not working. Appreciate the suggestion.
I’m surprised refreshing doesn’t work.
Could you show us a screen recording video using a program like ScreenToGIF? You can use the portable version is you don’t have Windows Admin Privileges. If your data is sensitive, you could create dummy data for the purpose of the video.
Other questions:
I'm not the OP, but have been having a similar issue. I use ArcGIS Pro 3.2 to author layers and publish them to an 11.1 Enterprise Server. From there, they are incorporated into maps in ArcGIS Online, and further wrapped by Editing Apps that my colleagues use to make changes to the served data- Desktop and FieldMaps versions both, but no need to overly complicate things.
A user of our Desktop Editor App (still in Web AppBuilder) ought to be able to add a specific string to the "Comments" field of a feature, and that one record ought to then be removed from sight via the Definition Query set up within the original layer.
But refreshing the Attribute Table nor refreshing the App (F5) appears to trigger the Definition Query.
<<I've got a similar setup in another item, and altering the records immediately triggers the Definition Query. But in that case, it's looking for a field to contain any non-blank value. Whereas in the case described above, I'm looking for a particular string within a field.>>