Refresh Results after Update Features Activity
I have a workflow that uses the Update Features Activity to update attributes of a selected record from a feature layer.
After the form is submitted, the user has to click off the feature, then click on it again to see the updated attributes in the results panel.
How can I get the Results panel to refresh with the newly edited attributes immediately after the form is submitted?
I have tried using Run Command Activity with command name = results.display-new-details, however this does not work.
Thanks
-
I'd suggest trying re-selecting the updated features using the Show Results activity.
If you specifically want the results to appear in the "Result Details" component rather than "Results List" though, a command like results.display-new-details does make sense. You'd just have to use Run Operation with results.from-graphics first in order to convert the updated results to a type that the results.display-new-details command's parameter accepts.
Example: If Update Features uses =$query1.features , then
-Run Operation runs results.from-graphics on ={graphics:$query1.results}
-Run Command runs results.display-new-details on =$runOperation1.result
0 -
this is not working in my case.
Is there another way to update the result details after updating a feature?

the second operation is even not known:
0 -
From the screenshots, I see 2 adjustments to make:
- The “Operation Parameter” input needs an “=” character at the start, to make sure the value is read as an expression instead of as a plain string
- The second “Run Operation” activity should be a “Run Command” activity instead. The Run Operation activity only recognizes operations, and “results.display-new-details” is a command.
- The difference between them is that Operations generate outputs, and Commands do an action in the app without producing an output value. The are both documented on https://developers.vertigisstudio.com/docs/web/api-commands-operations-events/ , but Operations start about half way down the page (there's a link at the top-right corner of the page to jump between sections).
0 -
thanks Amanda Frech . Chaning the second part to “run command” makes it running (the = was not missing, only cut on the screenshot).
But the result is now, that the detail view becomes empty (which is better then showing wrong results). But I want to have a new identify. I tried tasks.identify with the result from the udpateFeature activity but this did not work.
0 -
Hi,
In order to get this to work I did the following:

Best regards,
Sindre0 -
Thanks Sindre Sellæg
Finally I made it running. The highlights.add-focus is not needed (in my case).But it needs a new query after update Features (because update features does not deliver any attributes nor the geometry).
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer