How can I clear the Results Frame when a feature isn't selected?
The "ClearSelection" command works great to clear features from the Results Frame when the features are selected. However, if the feature is simply displayed as a result of using the Point Identify tool, the results are there basically until the page is refreshed.
I want to add a step to a workflow that will clear the Results Frame even when the listed features are not selected. I can't find anything in the external commands that does what I want. If I could simply reload the page from the workflow that would be fine. Is there any command that would be the equivalent of hitting the "F5" key?
-
I too would like to do this? Any suggestions
0 -
As a workaround, I added an external command to the workflow that changes back to the Layer List view. Doesn't really clear anything, but it hides it until the next workflow is run.
0 -
It's a bit of a hack, but you can use the 'SelectFeatures' task to select an empty FeatureSet and thus clear the results view.
To do this in your workflow:
- create a new variable of type ESRI.ArcGis.Client.Tasks.FeatureSet, and give it a default value of 'new ESRI.ArcGIS.Client.Tasks.FeatureSet()'.
- add a 'SelectFeatures' Task to the workflow
- for 'Feature Set' enter the name of your new, empty FeatureSet variable.
- for both 'Map Service Id' and 'Layer Id' enter "0". It doesn't really matter much what these are, but you can be reasonably sure that something with the ID "0" actually exists.
Now when the 'SelectFeatures' task runs it will happily "select" your empty FeatureSet and clear the previous results.
0 -
Works Great,
Many Thanks
0 -
This work around works great with one exception - if i clear the results (say I have 3 records selected from a workflow) , and then go back and run the same workflow again, it gives me the old collection of results with the new selection included (shows me all four selected records from the workflow) , so somehow the records aren't being totally deleted with this fix... strange behaviour!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer