Zoom to Selected feature and highlight
Hi all, I am currently upgrading workflows built using Workflow version 4.11.
I am having difficulty achieving similar functionality in Geocortex Web Workflow for version 5.23. I have looked at the AutoComplete sample and have gotten the results populated in the dropdown list, however, I now need to zoom to the result selected in the dropdown on the map and to highlight the feature.
I have used the Show Results Activity but I receive a warning message that it is missing an attribute table. I have also used the Add Graphics Layer Features to no avail. Our map services are not geocoded for address points. I also tried using the Run Command and receive the following error: The gcx:wf:app::RunCommand activity has not been implemented.
I need some help😥
-
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 -
Hi Ryan,
Thanks for your response. I exported the workflow as a JSON file. I have attached it below.
0 -
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 -
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 -
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.
0 -
Ok will try that. Thanks, Ryan.
0 -
@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 -
Hey Andrew - not sure then. Is your service publicly available?
0 -
also - do you have a Results component as a results place holder in your GC Web App?
0 -
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 -
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 -
Ok, Ryan. I appreciate all your help. Thanks again I will contact support.
0
Please sign in to leave a comment.
Comments
12 comments