Skip to main content

Within Workflow 5 environment I want to run a workflow (calculate field values) against already selected features in Web AppBuilder. Is this possible?

Comments

6 comments

  • Darryl Klassen

    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
  • Permanently deleted user

    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
  • Darryl Klassen

    Hi Matthew, thanks for the suggestions. Do you have an example of passing a selected set as a Parameter to the workflow?

    0
  • Permanently deleted user

    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
  • Darryl Klassen

    Thanks Matthew. The issue is determining this JSON object, of the selected set within WAB.

    0
  • Darryl Klassen

    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

Please sign in to leave a comment.