Zum Hauptinhalt gehen

Zoom to Selected feature and highlight

Kommentare

12 Kommentare

  • Ryan Kelley

    I have a similar workflow that zooms to feature in DropDown list and highlights record using Show Results activity. Can you attach your workflow?

    0
  • Andrew Edwards

    Hi Ryan,

    Thanks for your response. I exported the workflow as a JSON file. I have attached it below.

    0
  • Ryan Kelley

    couple thoughts:

    • your Show Results is using a variable that does not exist (ie. =$query2.results) - I only see query1.
    • your query layer activity for query1's Output Spatial Reference says envelope - this should be a number or null
    • Are you getting a valid return from your Query Layer activity?
    • I think your Run Command is only valid in a server side workflow.

     

    0
  • Andrew Edwards

    Hi Ryan,

    I was experimenting with another query layer. So that was an oversight. Nonetheless, even if it has the correct reference to query1. I still get nothing.

    For point #2, is there a reason it should be null or a number?

    For point# 3 Yes, I do get results from the query layer.

     

    0
  • Ryan Kelley

    Your Output Spatial Reference should be a wkid if the output is diff than the input.

     

    Try taking out all of the values you have in the Show Results activity except first one for your features (i.e. =$query1.results). I typically keep it real simple like that and the geometry will highlight. This is the sequence I typically use, which is different than yours.

     

    image

    0
  • Andrew Edwards

    Ok will try that. Thanks, Ryan.

    0
  • Andrew Edwards

    @Ryan Kelley? The geometry is still not being highlighted. It zooms though. Received this warning message as well: Workflow cannot perform the Show Results activity because there is no Attribute Table widget present in the app. To resolve this issue, configure the app and add an Attribute Table widget.

    0
  • Ryan Kelley

    Hey Andrew - not sure then. Is your service publicly available?

    0
  • Ryan Kelley

    also - do you have a Results component as a results place holder in your GC Web App?

    0
  • Andrew Edwards

    Hi Ryan. No, our service is not publicly available. I do not have a results component placeholder in the workflow. My understanding is that the results are populated in the dropdown. I want the user selection from those results in the dropdown shown in the map...why would I need a placeholder?

    0
  • Ryan Kelley

    I think the Show Results needs to go somewhere, like the Results component. If you want results to show up in a form, then you do not need the Show Results activity. You'll have to write your own. If you need help beyond this point, you might want to reach out to support.

    0
  • Andrew Edwards

    Ok, Ryan. I appreciate all your help. Thanks again I will contact support.

    0

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