Zum Hauptinhalt gehen

How can I clear the Results Frame when a feature isn't selected?

Kommentare

5 Kommentare

  • Permanently deleted user

    I too would like to do this? Any suggestions

    0
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    Works Great,

     

    Many Thanks

    0
  • Permanently deleted user

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.