Quick Report Limit Report Area?

654
1
Jump to solution
05-23-2017 11:22 AM
KE
by
Occasional Contributor

Is there a way to limit the geographic area where users can take a report?

AppStudio for Desktop (Standard) 1.4.18

Quick Report Template

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
nakulmanocha
Esri Regular Contributor

There is no direct way available. But can be done through some code changes at the point of geometry collection. You can do a check to see if the geometry collected lies within the desired extent using "Geometry. within( geom)" method . If not then discard the geometry. 

Another way to force users to collect report within your desired area is to create and use a webmap which is only limited to your desired area. This way if they are outside the map area they cannot draw polyline and polygon geometry. For point geometry it uses the device location and that will fall outside the map area. At this point you can do a check. 

View solution in original post

1 Reply
nakulmanocha
Esri Regular Contributor

There is no direct way available. But can be done through some code changes at the point of geometry collection. You can do a check to see if the geometry collected lies within the desired extent using "Geometry. within( geom)" method . If not then discard the geometry. 

Another way to force users to collect report within your desired area is to create and use a webmap which is only limited to your desired area. This way if they are outside the map area they cannot draw polyline and polygon geometry. For point geometry it uses the device location and that will fall outside the map area. At this point you can do a check.