cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tobi_1
Regular Visitor

Filtering text

Hello,

 

I created an tablet application and now I want to filter the items of a TemplateGalleryList. I think this should work with a TextSearchBox, but all I can find is a TextInput. As I write something in an TextInputBox, it does not filter the items.

Can you help me with this? For example if I type an "L" I only want to see all the items that contain an "L".

 

Many thanks in advance!

 

Tobi

1 ACCEPTED SOLUTION

Accepted Solutions
iAm_ManCat
Super User II
Super User II

Hi,

 

Just cleaning up older unanswered posts,

 

If anyone arrived here after searching for similar, here's how we'd do this:

 

the Items property of your TemplateGalleryList should be set to the following:

 

Filter(
   datasourceName,
   IsBlank(TextInputBox.Text)
   ||
   StartsWith(columnName, TextInputBox.Text)
)

 

This will then not filter if the textInput is blank, but will search for items starting with whatever you are searching for if it contains any text.

 

Cheers,

Sancho

 

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

1 REPLY 1
iAm_ManCat
Super User II
Super User II

Hi,

 

Just cleaning up older unanswered posts,

 

If anyone arrived here after searching for similar, here's how we'd do this:

 

the Items property of your TemplateGalleryList should be set to the following:

 

Filter(
   datasourceName,
   IsBlank(TextInputBox.Text)
   ||
   StartsWith(columnName, TextInputBox.Text)
)

 

This will then not filter if the textInput is blank, but will search for items starting with whatever you are searching for if it contains any text.

 

Cheers,

Sancho

 

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

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

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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (68,996)