Auto-complete box won't work with secure ArcGIS for Server
Hey everyone,
I am having an issue getting an auto-complete box and a combo box to work with a secure ArcGIS for server. When I run the workflow in the editor and have no security token just the service url both boxes work fine. When I upload it and try to run the workflow in the html5 viewer the boxes no longer work. I have tried adding a security token I received from the ArcGIS token service to the auto-complete box but when I do this it does not work in the workflow editor or the html5 viewer. Hope this makes sense. Any help would be much appreciated!
-
You might want to look at the url you are using to populate the auto-complete parameter. Are you using Get Map Service Info activity and passing that url variable in as your input via the Runtime Modification on the form? We had a similar issue and that fixed the issue... though it was using Silveright.
0 -
Right now I am using the mapserver/0 url for the layer to query in the auto-complete box task url. Currently I am not using a runtime modification with the Get Map Service Info but will give that a try and see if it works. Thanks!
0 -
Make sure you also add a runtime modification to assign the token.
form.Find(Of AutoCompleteBoxFormItem) ("AutoCompleteBox1").Token
0 -
I'm new to using secure arcGIS for server rest points so I just want to double check about that runtime modification. Is it an "assign" task you use for that and after adding that to the runtime modication what do I do with the form.Find(Of AutoCompleteBoxFormItem) ("AutoCompleteBox1").Token? Is there a variable I will put into the token box in the autocomplete box 1? Hope this makes sense. Thanks for the response!
0 -
That was perfect. Got it working now. Thanks for all the help! 0 -
In the example that John posted I don't see the WHERE clause being defined anywhere. How is that handled? I've been tweaking my workflow and still can't get autocomplete to work! Any advice? 0 -
You can define the Where Clause directly within the Display Form element. You can use the regular Display Form settings alongside Runtime Modifications (the latter will overwrite any common settings in the former).
If you need to define your where clause in a runtime modifications the syntax is.QueryWhereClause. Example:
form.Find(Of AutoCompleteBoxFormItem)("AutoCompleteBox1").QueryWhereClause
You can find all of the runtime modification syntax on the help page for the Display Form activity.0
Please sign in to leave a comment.
Comments
7 comments