Within Workflow 5 environment I want to run a workflow (calculate field values) against already selected features in Web AppBuilder. Is this possible?
Running Web AppBuilder Dev edition with Workflow 5
-
I can run it using the Geometry Picker within Workflow 5, but want to use the pre-selected features within WAB instead. Any ideas?
0 -
I would think these features can be passed as a parameter to the workflow call.
Otherwise you would need access to the ESRI Map object and to do a lot of processing that shouldn't be required. Can possibly be done this way too though I think.
0 -
Hi Matthew, thanks for the suggestions. Do you have an example of passing a selected set as a Parameter to the workflow?
0 -
No, I but logically --> stringify the json object, make sure it's in a URL friendly format and use query params like {url_to_workflow}?featuresToProcess=SelectedFeatures
That^ might have more steps depending on how you're selecting the features and if you already have access to them from writing a workflow. Using GE HTML5 Viewer you can just call workflows with query params like that so I assume it's the same in web app builder.
0 -
Thanks Matthew. The issue is determining this JSON object, of the selected set within WAB.
0 -
I think I have figured it out - if you use this statement on the layer of interest:
=$selectedLayer.layer._selectedFeatures
then you will only get selected features returned or a null if nothing is selected.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer