Edit a feature in Web 5 with Workflow 5 using Commands and Operations
In a Web Viewer 5 app, I have attached a Workflow 5 workflow as a Feature Action of a layer in the map. I'd like that workflow to trigger an editing session. In my workflow, I have tried the Run Command activity, setting the Command Name to "edit.display-update-feature" and the Command Parameter to an Object. The value of the "features" property is set as the feature in the context passed in to the workflow and captured by the Get Workflow Inputs activity:
{
editAttributes: true,
editGeometry: true,
features: $getWorkflowInputs1.inputs.context[0],
showNotifications: true
}
Is this a possible workflow? And if so, any ideas on the Commands and/or Operations and parameters to make this work?
Thanks!
-
Hi Christopher,
Did you ever get this working? I'm currently trying to run ‘editing’ via the workflow using the command
edit.display-update-feature
I basically need the workflow to :
- select a feature
- allow the user to move vertices (reshape/resize the geometry)
- pass this resized geom into further stages of the workflow
- enable specific editing of the attributes - via workflow (not in the UI/result panel etc.)
I've been able to get some ways there, with the following command list (which I've converted to workflow) - but even then, the boolean arguments such as enableScaling/enableMoving aren't working as expected…
[
{
"name": "sketching.capture-geometry",
"arguments": {
"geometryType": "point"
}
},
"tasks.identify",
{
"name": "edit.display-update-feature",
"arguments": {
"parent": "",
"attributes": {
"slot": "top-start"
},
"editAttributes": "false",
"editGeometryOptions": {
"enableScaling": "false"
"enableMoving": "false"
},
"geometry": null
}
}
]0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar