GetSelectedFeatures in WF5
How can I get a list of features selected in the HTML5 Viewer utilising WF5 as we can with GetSelectedFeatures in WF4?
We have a WF4 workflow used in outage planning. Users trace the electrical network using the various tools provided in ArcFM Web before generating maps and several reports for the outage. We've played around with the 3rd party Run ArcFM Electric Trace activity for WF5 with limited success. Still, many outages are complex and need multiple traces and further editing to select all service points involved in the outage. It would be an enormous amount of work to build all that editing and query functionality inside a workflow when it's already available in the out-of-the-box viewer. All we want to do is read the list of features from a layer in the Identify Results panel.
-
Hi Graham,
There is no GetSelectedFeatures equivalent in WF5.
Our workaround, is to use the context menu Results List and Results Table Set Actions, add a menu item RunWorkflowByUrlAndInputs
{
"url": "YourWorkflowURL.com",
"context": "{{context}}"
}
Then you use GetWorkflowInputs in the workflow to access the results features. In our case, we use it for running reports. I run a check to see what the layer is ($inputParams.inputs.context.layer.displayName) and if it's not one I'm interested in I give a message saying "no reports available for this layer"
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar