Apply Spatial or Attribute Filter to data via User permissions
Is there a way to dynamically filter the data both spatially or attribute wise based on a user group or specific user.
We naturally don't want to fire up new map services just for a Def query...or nest the same layer in the same MXD with a different def query.
We would like to do advanced data security via Geocortex.
Am I missing a tutorial anywhere? Workflow that runs at startup?
0
-
Hi Dylan,
There is a way, yes. It's documented under the heading "Filter a Layer's Features":
https://docs.geocortex.com/essentials/latest/admin-help/Default.htm#ge/admin/filter-a-layers-features.htm
and
https://docs.geocortex.com/essentials/workflow/latest/help/Default.htm#wf/help/create-a-workflow.htm#Create_a_Layer_Filter_Workflow
I am not sure if you can filter out specific attributes/fields completely, but you can certainly filter by attribute value.
Regards,
-Malcolm0 -
Hey Malcolm,
Is it also possible to filter de layer based on geometry (so geometry instead of where clause) in a layer filter workflow?0 -
You can do a query task with a geomety as in put to get the object ids of the geometries intersecting with the geometry. You can create a where clause based on this object ids and use this to set a definition expression on the layer.
If there are many object ids, the query URL could become too long. And I'm not sure of the performance of this suggestion.0 -
Thanks for the suggestion Nico. I am not sure if I can apply this solution. First of all because of performance considerations, secondly because the objects in my layer are moving (ships). I am not sure when does layer filter workflow applies its definition query. If it is at the start up, then that definition is not valid for me since the ships are coming in and out of the extent. If it applies the definition every time the service is loaded (refreshed), it might be a solution. 0
Please sign in to leave a comment.
Comments
4 comments