cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shawkinson
Level: Powered On

Gallery is filtered based on user selection and search needs to be performed

Hi everyone, 

I have a Gallery that has a list box containing multiple selections - depending on the selection it will take the user to another gallery that is filtered on a different criteria. 

The search function needs to be able to search the selection that is on the screen as well as certain selections from within that search box, however I can not find documentation in regards to this. It also needs to be able to search in i.e. The accounts table which is in this case the account that is attached to the Opportunity - CDS connection

Thanks,

Sigi

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Gallery is filtered based on user selection and search needs to be performed

Hi @shawkinson ,

Do you mean that the gallery will display different table based on the selection of listbox and then the gallery's items will filter based on the text in searchbox?

If so, I suggest you set the gallery's Items:

If(IsBlank(searchbox.Text),
If(listbox1.Selected.Value="....",table1,
listbox1.Selected.Value="....",table2),
Filter(If(listbox1.Selected.Value="....",table1,
listbox1.Selected.Value="....",table2),
fieldname=searchbox.Text
)
)

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Gallery is filtered based on user selection and search needs to be performed

Hi @shawkinson ,

Do you mean that the gallery will display different table based on the selection of listbox and then the gallery's items will filter based on the text in searchbox?

If so, I suggest you set the gallery's Items:

If(IsBlank(searchbox.Text),
If(listbox1.Selected.Value="....",table1,
listbox1.Selected.Value="....",table2),
Filter(If(listbox1.Selected.Value="....",table1,
listbox1.Selected.Value="....",table2),
fieldname=searchbox.Text
)
)

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

shawkinson
Level: Powered On

Re: Gallery is filtered based on user selection and search needs to be performed

See attached screen shot - I am having such a hard time with this since it Should do like a Contains find through all entities in the databse - 

Thanks for all your help

Sigi

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,555)