Add "Get Selected Features" to Workflow 5
Non planifiéeI would like to see the "Get Selected Features" workflow tool from the old workflow tools library to be brought forward into Workflow 5 and be able to be accessed for Web App Builder (WAB). This tool was very useful. I now have to use the Geometry Picker and use multiple geometries, as opposed to using the built in select widget in WAB. The Geometry picker also doesn't have a ctrl/shift + click options, which would be useful.
-
Please please please.
This is the first step in almost every essentials workflow we have. It is really clunky for the us and the users to have to go into the results set context menu to launch a selection-specific workflow (using workflow inputs).
0 -
Has this been Implemented Yet?
0 -
I think this is possible now, in VSW. I guess it would not help with WAB.
There is an operation called ‘results.get-features’. Described as ‘Returns the current set of features from a specific results component if a model or model ID is specified, otherwise from all results components. Web only.’
So, one can use the run operation workflow activity with that operation name. It will return an array of results, each of which is an object with properties such as title, primaryKey, geometry, etc (use log activity and you can explore the features in browser dev tools). Once you have the features, you'd probably want to loop over them with a 'for each' activity. There are probably a few approaches to proceed. For my use case, I'm converting to Json (text) and then using arcade to extract the desired attribute value and like that…
One note of caution with this approach - I think the features returned are vertigis features. The structure of the object could change with future releases and that could impact the WF.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires