Skip to main content

Get results from Query into Workflow

Comments

3 comments

  • Permanently deleted user

    Hi David,

    Without knowing too much about how you are selecting the 'zones' you're using you can provide a geometry to a query task using the GEOMETRY parameter. This parameter takes an Esri.ArcGIS.Client.Geometry object and is used as the selection feature that would select your parcels. All you would have to do is provide the Query Service Url to your parcel layer and leave the WHERE parameter blank in order to select all parcels that fall within that zone.

    As for how to select the 'zone' you wish to use, I would personally create a workflow that started by displaying a form to the user and prompt them to enter criteria with which to query the zones rather than performing the query outside of a workflow (Just my thoughts). Otherwise you would have to use the GetSelectedFeatures task to pass the selected zone to the query tool within the workflow.

    -Warren

    0
  • David Major

    Thanks for the quick reply.

    I would like to give the user the flexibility to choose whatever layer they want (I used zones for an example, but it could be a neighbourhood), then from there just select 1 or 2 of those neighbourhoods, just like the Query tool does.  So rather than recreating it using the form designer I thought it would be easier to pass the results of it.

    I did look at the GetSelectedFeatures task but it requires the featureset id. Since the query tool lets you choose whatever layer you want, is it possible to know what the featuresetid is?

    David

    0
  • Permanently deleted user

    Hi David,

    In my experience, I've found workflow tasks to be very layer specific. Therefore, I don't think you could ask a workflow to infer the featuresetID based on a current selection (based on my experience but someone else may have a bright idea to contribute).

    Now knowing a little more about how you would like your workflow to function, I might suggest prompting the user to provide the name of the layer that they've used as a selection through a combobox form at the beginning of you're wokflow. You could supply commonly used layers as combobox entries and when the user makes a selection you could supply the selection as a variable to a GetMapServiceInfo task and pass the resulting LayerID to the GetSelectedFeatures task.

    -Warren

    0

Please sign in to leave a comment.