Hey guys!
I am currently trying to filter a List by using a DropdownSearch and i cant figure out how to get it to work or what I am doing wrong.
Here is my latest attempt:
Check the oml.
Hello Fritz,
Your aggregate needs to be filtered by your variable, filterByName.
Or you should mapping the value that you have in filter by name onto the SearchKeyWord variable.
Hope I could help you
The screen looks incorrectly set up in terms of variables and sequence of execution after data fetch happens. Kindly share your OML file, it might be possible for us to find out what's wrong exactly and how to fix it.
Also please explain in brief, what is your requirement for this piece of code. I also need to see how are you fetching the aggregate GetMovies.
I edited my question and uploaded the oml :)
You need another query for Table. If you filter your query you will affect Dropdown and table. After you need a local variable to hold the value selected and filter the query. If I understood well what you want achieve.
Hey could you somehow show me what you mean exactly ? I'm still a beginner and don't really know what to do with your information :D
I'll create a demo for you!
Here it is. Let me know if you have doubts!
Thank you ! But are you sure you uploaded the correct version because i get an error when i open it ? The FilterByName Variable doesnt exist
Hi Fritz,
Correct but with a mistake, didn't notice.
Now the correct file attached
Sry for the late answer. This doesnt work for me still, the selected value in the dropdownsearch instantly disappears after selecting and the List does not change. Maybe you are using another version of outsystems ? Thank you for helping though really appreciate it.
Let me check, I'll publish on my side to understand what you mean and make a video probably for you.
Nice thank you, that's what i was looking for! Really appreciate it
Good to know.
It was a mistake when I did this on the first time, even on low code we can create bugs :)
Hello Paulo
https://success.outsystems.com/documentation/how_to_guides/front_end/how_to_use_the_dropdown_search_to_filter_an_aggregate_with_a_single_attribute/
based on this, but having records not repeated.. cant have the output list as here.. dont want repeated records
Your oml has a list, but imagine you have duplicated records
Hi Mafalda,
To not have repeated record depends of your SQL query.
Thanks
I had already tried it
Also i disabled multiple selection in odc and it still does it sometimes.. Is it a bug? In o11 it was fine
Thanks.
Answer on the private chat you open with me as this topic is very old :)