Problem querying table in secured ArcGIS service
I am trying to populate a combobox in a form by querying a SQL Server table. I've added the table to a map document so that it is exposed as a service's rest endpoint. The service is secured, so I use a GenerateToken activity and that token is then fed to the Query Details in a form's combobox. That combobox is not getting populated, however. If I add "Everyone" to the service's allowed roles then the combobox is populated, so this appears to be a permissions issue, but I can't figure out where the hangup is exactly.
I can browse to, and query the table's ArcGIS rest endpoint, logged in with the same credentials that are specified in the GenerateToken activity. The same variable is used in the GenerateToken activity (to receive the token) and in the combobox's query details (to consume the token). I have double checked the combobox's Task URL (and remember that this works if "Everyone" can access the service).
What am I missing? Any suggestions?
Jim
-
Did you figure this out?
0 -
The issue here is likely due to a Form not being able to take variables inside the properties. However, this is exactly what the runtime modifications are for. To set the token in a combobox, you will want to use an assign activity in the Runtime Modifications section of the Display Form activity, and set
form.Find(Of ComboBoxFormItem)("<FormItemID>").Token = yourTokenVariable
where "<FormItemID>" is the id of the form control (usually "ComboBox1").
-Victoria
0
Please sign in to leave a comment.
Comments
2 comments