Displaying results - multiple FeatureSets
I have two featureSets that I want to display as results. My problem is that I can only get one featureSet to display at a time. The first featureSet is always overwritten by the second one. How do you get multiple featureSets to display?
Here is the basic outline of my workflow:
1. Select first Feature Set using SelectFeatures into Collection Name "TraceResults"
2. Select second Feature Set using SelectFeatures into Collection Name "TraceResults"
3. RunExternalCommand SetActiveCollection = TraceResults
4. RunExternalCommand "SwitchToTabularResultsView"
I would like something like the way the Identify results works with a tab for each featureSet of results:
(/customer/servlet/servlet.FileDownload?file=00P6000000e88CKEAY) /customer/servlet/servlet.FileDownload?file=00P6000000e88CKEAY
-
Hi Toby,
I was able to get this working by adding another RunExternalCommand with Command Name = SetActiveFeatureSetId and no parameter. This tells the app to make all the FeatureSets in the TraceResults collection active.
--Ryan
0 -
Ryan, thanks for the reply. This doesn't seem to be working for me. Instead of my results showing as multiple tabs, they are now combined in a single table (see screenshot below). How do I force each set of results into its own tab? In the SelectFeatures Tool I specify for the Collection Name = "TraceResults". If I try giving each SelectFeatures a unique Collection Name I only get one set of results displaying.
(/customer/servlet/servlet.FileDownload?file=00P6000000e88BrEAI) /customer/servlet/servlet.FileDownload?file=00P6000000e88BrEAI
0 -
Hi Toby,
Are you specifying the Map Service Id and Layer Name on the Select Feature activity? If you set these the results will be associated with the appropriate layers and they will appear as separate tabs (also reports, data links, and other useful stuff will work). If you don't specify them it won't know that the results belong to different layers and it will merge them together.
--Ryan
0 -
Ahh, it was my map service ID. I have a cached base map in the site and had mistakenly specified that map service instead of the dynamic one that I was selecting features from. Thanks for your help.
0 -
Hi,
I have made a workflow to trace a series of pipes and nodes. The workflow returns a series of featureSets from various layers from some query tasks in a for each loop, the results are always assigned to the same featureSet named "traceGeometry".
What I would like to achieve is to group these feature sets in a few categories. In other words instead of having a table view with tabs for each layer, I would like to aggregate some layers together in one tab with an Alias name.
All these results should then belong to one Collection named "Trace".
The workflow explained above with "SetActiveCollection" and "SetActiveFeatureSetId" doesn't seem to do the trick for me.
to make things clear, this is a schematic of the relevant part of the workflow:
for each layer:
Query geometry -> Result = traceGeometry FeatureSet
/customer/servlet/servlet.FileDownload?file=00P6000000e88HoEAI<Sort in categories> <----- The logic I'm missing
Select Features
/customer/servlet/servlet.FileDownload?file=00P6000000e88HtEAIEnd for each
0 -
Hi Toby /Ryan,
I'm trying to do the similar thing but SetActiveFeatrueSetId doesn't seem work for me. Would you mind sharing a bit your workflow specifically for this part? Thank you.
regards,
Jack
0 -
Ibrahim,
Would it be possible to obtain a copy of your trace workflow?
I've just started investigating the same function but with a waste water model.
Thanks in Advance...Walter
0
Please sign in to leave a comment.
Comments
7 comments