cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RoopaPendyala
Helper I
Helper I

Autosearch based on a string or substring on a gallery to filter items.

1) I have a text input control and a gallery (outer) displaying items (label) and also a gallery(inner) embedded within the outer gallery which also holds labels.

1) when user enters string or substring in text input , my criteria is to search for the matching text in the list of items in outer gallery     and display the items matching the text

2) It should also serach for the same string in inner gallery and also display the list.

 

Can anyone help me here for the formula or expression.

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

You should be able to make it with the Search function.

Assuming the TextInput is named as TextInput1, outer gallery is named as Gallery1, Inner is Gallery2.

To have the same string searched within each Gallery, under the items property of each, input the formula below:

Items property for Gallery1 (Assuming Table1 is for Gallery1, with Column1, Column2,.....):

Search(Table1, TextInput1.Text, Column1, Column2 ...)

Items property for Gallery2 (Assuming Table2 is for Gallery2, which has Column3, column4 ....):

Search(Table2, TextInput1.Text, Column3, Column4...)

For the Search function, see:

Filter, Search, And Lookup functions in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
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
v-micsh-msft
Community Support
Community Support

You should be able to make it with the Search function.

Assuming the TextInput is named as TextInput1, outer gallery is named as Gallery1, Inner is Gallery2.

To have the same string searched within each Gallery, under the items property of each, input the formula below:

Items property for Gallery1 (Assuming Table1 is for Gallery1, with Column1, Column2,.....):

Search(Table1, TextInput1.Text, Column1, Column2 ...)

Items property for Gallery2 (Assuming Table2 is for Gallery2, which has Column3, column4 ....):

Search(Table2, TextInput1.Text, Column3, Column4...)

For the Search function, see:

Filter, Search, And Lookup functions in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
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

Do you need any further help on this topic?

 

Regards,

Michael

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (67,290)