Clear FeatureSet
Does anyone know how to clear a highlighted FeatureSet?
-
You could try a RunExternalCommand activity, using the "ClearHighlights" command with no parameter to remove the highlights, or using the "RemoveFeatureSetFromSelection" command with the feature set to be cleared as a paramter.
-Victoria
0 -
Victoria,
Thank you for your reply.
I've added the External Commands but it does not remove the parcel highlights. Since my featureSet is also a selection set perhaps there is another command I should be using. Do you know where a comprehensive list of these commands may be found?
-Bill Jackson
0 -
There is a list and descriptions of all Viewer commands in the Administrator and Developer Guide for the Silverlight Viewer, which can be downloaded from the Support Site under Geocortex Viewer for Silverlight. Look in the API Reference section. Not all of these commands can be used in Workflow, due to the accessibility of some of the parameters, but it is a good place to start.
-Victoria
0 -
Bill - were you able to get this to work? I've not been able to remove the highlighted polys using ether of the methods reccomended by Victoria.
Victoria - any suggestions.
Brad
0 -
My bad, it was the "ClearSelection" command i required.
Brad0 -
Actually, I want to design a workflow to select features ,can some body give me a hand? I do not use identify to select them
Regards,Hamid
0 -
Hi Hamid,
You can use a QueryTask activity to get the features that you want in a featureset, and then use a SelectFeatures command to select those features in the viewer. You might want to take a look at the Buffer and Select Features sample workflow on the Code Gallery for more information: https://support.geocortex.com/using-workflow-to-buffer-and-select-parcels
-Victoria
0 -
Another option would be to create a check box for the user to select "Clear selection", and then before the selection include a FlowDecision for clear = true (Clear the selection is checked)
and have one selectfeatures for true, where "clear collection first" has "true", and for the False decision, another selection without anything entered for "clear collection first".This was my work around for clearing a selection since I'm pretty new at this, there might be better ways.
0
Please sign in to leave a comment.
Comments
8 comments