How to bypass Results List and open Results Details directly?
Hello, I'm feel this is a simple thing that I'm just overlooking…
In Studio Web (using Web - GIS Default template), if you click on features on the map, it automatically opens up the Results Details component, which lets you view the single feature, or click through multiple features.
In Workflow, I have a query that returns a feature set. I want to open the Results Details widget just like if I'd clicked on the map to identify them. I'm using the Show Results activity, and passing it the query features. However, it automatically opens up the Results List component first. How do I have it automatically open the Details component instead? I tried removing the Results List component completely, but it then doesn't show any results.
Thanks!
Chris
-
As a follow up:
The query uses $layer1.layer as the input layer. It returns geometry and all the attributes. I replaced the Show Results activity (which looks like it just works with the Results List and Results Summary components) with a Custom Command (using results.display-details for the command name, and =$query.features as the command parameter). When I run it, it opens the feature details component, and it shows the correct number of features. However, they are all blank…
0 -
Hey Chris Dunlop
I believe what you are hitting is a need for VertiGIS features as an input, as that is what the VSW Results components need. You need aresults.from-graphicsand to use that as the input for yourresults.display-details.The syntax for that results.from-graphics would be, using a Run Operation:
- inputs of
results.from-graphics - and parameter something like
={ graphics: $query1.features }
I threw a quick example here: https://apps.vertigisstudio.com/workflow/designer/#workflow=4e6aa111590c4aac84e78672e9a37942
I also created a quick knowledge base article to cover this: How to Query a Layer and Display Results Using results.display-* Commands in VertiGIS Studio Workflow for VertiGIS Studio Web where you can download the workflow example to import, incase you do not have SaaS access.
1 - inputs of
-
Thanks Gareth! That worked great. I'd never have figured that out in a million years :-)
Chris
0 -
You are super welcome, Chris! This has prompted me to suggest some internal documentation improvements. If you were stumped, others probably are too.
0 -
In case that the results of a spatial query are in layers that are not visible, how can they still be shown in the map? I now highlight my featureset but if I do that the labels for the features are gone. How can I show all the features and have the labels present although the layers are not set visible?
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires