Clear Filter with Empty String
I have a workflow that sets a filter based on an attribute value. But I would like to include on the form the ability to clear any previously set filters.
Using an empty string value in an assign statement ie. EmptyString = "" and using this in the next SetLayerDefinition activity does not clear any filters.

Plus, the first item in the list is automatically selected. Can this be removed?
Walter
0
-
Hi Walter,
Normally putting an empty string in the SetLayerDefinition activity will clear any previously set filters. Are you certain you have the correct service and layer id set? Have you included a RefreshMap activity to refresh the service in the viewer? If for some reason an empty string won't work, another definition you could try is "1=1".
It isn't possible to have nothing selected by default for the listbox. You can however specifcy the default selection using runtime modifications, or depending on your circumstances, add an empty entry to the start of the listbox to be the default selection.
I hope that helps,
Amanda0 -
Amanda,
Thank you for your assistance. Your suggesions proved successful.
Walter0
Please sign in to leave a comment.
Comments
2 comments