713
Views
5
Comments
Solved
I can't Reset my Dropdown Search
Application Type
Reactive

Hi everyone. 

I have a Dropdown Search widget on my screen. At the start, no value is selected. The user may select a value from the dropdown.

Upon clicking a button, I want the Dropdown to go back to its original state (no item selected). I tried refreshing the Dropdown's source (an Aggregate) but it doesn't seem to work.

Is there another way I can achieve this?

Thanks in advance.

2022-10-17 06-51-09
Shweta Gedam
Solution

Hi Yuzuhi,

In my above comment, i have given you a discussion link for an alternative to do reset.

But if your use case is to clear dropdown search using 'Reset' button only, then i have tried with this and got the solution.

You can check attached OML for Reset button implementation.

In Below i have shared a link for the demo.

https://shweta-gedam.outsystemscloud.com/DropdownSearchReset/DropdownResetDemo?_ts=637438982553430869


Hope this Helps, Thanks and Happy Coding!!

DropdownSearchReset1.oml
UserImage.jpg
Yizuhi Galaviz

Thank you so so much, that worked just fine :)

2022-10-17 06-51-09
Shweta Gedam

Hi Yuzuhi,

Please take a look at the same discussion link here and let me know if it works.

https://www.outsystems.com/forums/discussion/61954/clear-dropdownsearchs-selection-reactive/


Thanks

2023-10-16 05-50-48
Shingo Lam

Yeah, just set value back to null

2020-06-04 15-38-19
Samiksha Manekar

Hi Yuzuhi ,

You have to assign "" to value before refreshing the aggregate.

Thanks

Samiksha

2022-10-17 06-51-09
Shweta Gedam
Solution

Hi Yuzuhi,

In my above comment, i have given you a discussion link for an alternative to do reset.

But if your use case is to clear dropdown search using 'Reset' button only, then i have tried with this and got the solution.

You can check attached OML for Reset button implementation.

In Below i have shared a link for the demo.

https://shweta-gedam.outsystemscloud.com/DropdownSearchReset/DropdownResetDemo?_ts=637438982553430869


Hope this Helps, Thanks and Happy Coding!!

DropdownSearchReset1.oml
UserImage.jpg
Yizuhi Galaviz

Thank you so so much, that worked just fine :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.