22
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.

Rank: #290
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

Rank: #4172

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

Rank: #290

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

Rank: #493

Yeah, just set value back to null

Hi Yuzuhi ,

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

Thanks

Samiksha

Rank: #290
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

Rank: #4172

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