GetSelectedFeatures Activity?
Does anyone know if there is a method I can use with WF5 that would be equivalent to the GetSelectedFeatures activity from Workflow 4? Maybe it's something simple that I've missed.
I was picking my way through the JavaScript object graph of the 'site' but nothing stood out there.
I'm using the HTML5 Viewer. All I really want are the OBJECTIDs for each layer that are selected.
thanks for any input
-
I was able to return query result feature IDs by logging this inside of a foreach activity:
$forEachDistrict.item.attributes.OBJECTID
0 -
you will need to replace $forEachDistrict with the id of your foreach activity
0 -
Thanks for the response Christopher.
I'm not sure I understand how you got the FeatureSet though. In my case, I want to be able to get any selection results the user has made on the map through any tools -- that is to say, I am not doing a query in my workflow that will produce a feature set. Did I miss something obvious?
In WF4 the GetSelectedFeatures activity returns a collection of featuresets (one for each layer that has a results set). That's sort of what I'm looking for.
0 -
I'm also wondering if it's possible to retrieve existing selection results. I have a WF4 workflow that does this with the GetSelectedFeatures activity, and I'm looking for an equivalent in WF5.
0 -
Did anyone ever find a way to get the selected features as a FeatureSet? I'm trying to retire a XAML workflow that uses the GetSelectedFeatures activity t turn a selection into a FeatureSet.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer