Zum Hauptinhalt gehen

Configure the profile Tool work flow to have a dropdown list to choose which layer in the map service I need to apply the tool on it

Kommentare

1 Kommentar

  • Permanently deleted user
    Hi Rawan, 

     

    This is definitely possible.  Since you say you only need a couple layers added, and it looks like they're part of the same map service, here's the simplest way:
    1. Open the profile tool workflow in Workflow Designer
    2. Add a Display Form activity near the top
    3. Add an Assign activity below that
    4. Delete the connection that goes from: IniltializeWorkflow -> DisplayCaptureGeometry. Then Re-make your connections so they go from: IniltializeWorkflow -> DisplayForm -> Assign -> DisplayCaptureGeometry. 
    5. Double click DisplayForm to open it
    6. Click the Design Form button on the activity
    7. Click the green + on Group1 and add a ComboBox
    8. On the ComboBox, provide a value for "Argument Name", eg argLayerId
    9. On the ComboBox, click the Add/Remove Items button.  Use this interface to add items for your layers, using "Display" for a friendly name describing the layer, and "Value" for the layer id number from ArcGIS Server.
    10. Once you confirm all your changes and close the form designer window by clicking OK, find your argument "argLayerId" just above "RuntimeModifications" on the DisplayForm activity.  Click on its text input field
    11. Press F3, use the name userSelectedLayer, and click OK
    12. Return back to your main flowchart and double click the Assign activity to open it
    13. Set it up so that it looks like this: DEMLayerID = userSelectedLayer.ToString()
    If the layers are on different map services, you'd need a couple extra steps.

     

    Hope that helps! 

     

    -Amanda
    0

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