Hi Mayank,
I expect that you are aware that the DropdownSearch widget version that you are using is deprecated in the latest OutSystemsUI version.
I tried multiple approaches to reset/remove active items in the deprecated DropdownSearch widget, unfortunately, none of them worked.
The only option I see is to clone the DropdownSearch widget to your application Core Widget module and customize it to achieve the reset functionality. And, as this widget is deprecated in the latest OutSystemsUI version, I suppose that there won't be any updates for this widget in the future from the OutSystems end.
In the cloned DropdownSearch widget exposes an event passing the initialized object to the parent scope. Referring to the initialized choices object, you can call the removeActiveItems method to reset the DropdownSearch.
JS Snippet:
setTimeout(function() {
$parameters.ChoicesObj.removeActiveItems();
}, 1);
Demo screen: ResetDropdownSearchTask
Refer to the attached oml
I hope this helps you!
Kind regards,
Benjith Sam