Zum Hauptinhalt gehen

Alias Query Service Url

Kommentare

2 Kommentare

  • Ethan Granger

    To add to my previous comment, I think what i need is a reference table that has these fields:

    State, County, Query Service URL, Layer ID, Map Service ID

    Example:

    Texas, Harris, http://ags.localhost.com:6080/arcgis/rest/services/houston/MapServer/28, 5, 28

    When a user selects a county, a switch statement populates variables based on the table above. It seems that i might need to create services that are hidden from the map, but accessible to the workflow.  Does anyone have an example of doing this?

    0
  • Permanently deleted user

    Hi Ethan,

    Arguments should be used when you want to manage their values outside of the workflow. For example, if you created a mapServiceUrl argument, you could add a property on the workflow in Rest Manager that matched, and set the value on the property. That way, if the value needs to change, you don't have to open the workflow, you can manage it directly from Rest Manager. 

    Using arguments this way, or storing the urls as default values on regular variables will be the cleanest way to keep track of them, and keep your workflow readable. However, if you would like to create an external reference table, you can access it one of the following ways:

    1. Publish it with your map service so that it has a rest endpoint that can be queried using the workflow QueryTask activity, or

    2. Query it directly using the SQLQuery workflow activity.

    The first way will put return the values as attributes of a graphic, and the second will return a data table. Both will require some manipulation to get the values back out in a usable format.

     -Victoria

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.