Update/reset all features
I've got workflows for updating single features using and assign statement for resultFeatureSet.Features(0).Attributes("FieldName") and following it up with an UpdateFeatures. That works great for updating single features, but how do I update values for an entire featureset?
I'm building a demo app to show how door knockers could canvas an area house by house, and I want there to be a tool in the I want to menu that resets all of the houses' status attribute values.
0
-
Use a ForEach activity. Set the type to be <Graphic>.
Loop through each Graphic in the FeatureSet setting graphic.Attributes("Yo") = "Dawg" in an assign activity.
Let us know if that works.0 -
That worked perfectly, thanks! 0 -
Hi John, would you mind sharing your workflow that updates a single feature that you referenced in the beginning of your post? I'm having trouble with the UpdateFeatures activity. 0 -
Here are the bare bones pieces I use to update a single feature. In practice, these steps are usually cooked into a more complicated flowchart, but the basic process of querying the layer, updating the values using Assign activities, and then using Update Features is the same.
https://drive.google.com/open?id=0B_hHHiqcTKMfLU9lSFo3bGFfRmM0 -
How about updating the each feature while still in the loop - it looks like it is not possible to do so and that UpdateFeatures only works when called outsite the loop ? 0 -
Do you have a use case for that situation you can share? 0
Please sign in to leave a comment.
Comments
6 comments