84
Views
5
Comments
Solved
Use Search DropDown to filter Galery/List
Question

Hi,

I am trying to use a Dropdown Search and filter a galery that has a list inside of it.

I already used normal searchs and its fine.

But it is the first time I am using a dropdown trying to filter a galery/list

Inside the list I have a container that has a picture and 2 expressions.

I just want that when I select something in the Dropdown Search, that filter it by the first expression and all the container would filtered.


So when I select something using the search dropdown The list below is filtered be the NAME but all the container should also be filtered together.


Any help? I am trying that for 2 days now. I am a beginner !


Thank you in advance.

2020-01-08 08-43-00
Rahul Kumar
Solution

Hi Pedro Boffa,

You can apply filter by name in aggregate -

If(SearchText="",True,Product.Name=SearchText)

and refresh data at onchange of dropdown search. 


Please check attached oml. 


Regards,

Rahul

ListFilterGallery.oml
2022-01-25 15-06-08
Pedro Boffa

Thank you very much for all the help.

It worked !!


2025-08-07 06-30-56
Amit J
Champion

Can you plz provide a sample oml?

2023-03-16 16-29-51
Paulo Rosário

Hello Pedro! 

I recreated your issue using a REST API and was able to filter a gallery using a dropdown by filtering a local copy of my API list.

Selecting only the "Front".

I will leave the OML for you to take a look. 

Hope it helps! 

Paulo Rosário 

DropDownFilter.oml
2022-01-25 15-06-08
Pedro Boffa

Thank you very much Paulo.

But you used a dropdown. My issue is that I am using a Search Dropdown.. !!

I will look into it right now !!


2020-01-08 08-43-00
Rahul Kumar
Solution

Hi Pedro Boffa,

You can apply filter by name in aggregate -

If(SearchText="",True,Product.Name=SearchText)

and refresh data at onchange of dropdown search. 


Please check attached oml. 


Regards,

Rahul

ListFilterGallery.oml
2022-01-25 15-06-08
Pedro Boffa

Thank you very much for all the help.

It worked !!


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