Skip to main content

Auto-complete box won't work with secure ArcGIS for Server

Comments

7 comments

  • Ryan Kelley

    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
  • Permanently deleted user

    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
  • John Nerge

    Make sure you also add a runtime modification to assign the token.

    form.Find(Of AutoCompleteBoxFormItem) ("AutoCompleteBox1").Token

    0
  • Permanently deleted user

    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
  • Permanently deleted user
    That was perfect. Got it working now. Thanks for all the help!
    0
  • Permanently deleted user
    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
  • John Nerge
    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.