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

Using StartWith and Search

Here's the situation:
I have a DataTable whose Item property is set like this:

Search(DataTable;Input_Search.Text;"Column1";"Column2";"Column3")

I'd like to apply the [@StartWith] tag, meaning the result of search would consider only the fields starting with what the user types in Input_Search. The problem is I can't get it to work, tried out a couple solutions (The StartWith() function...) but it doesn't work out. Any help ?

 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Level 10

Re: Using StartWith and Search

Hi @DonutsSauvage 

 

Filter(DataTable,StartsWith(Column1,Input_Search.Text) || StartsWith(Column2,Input_Search.Text) || StartsWith(Column3,Input_Search.Text) )

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

1 REPLY 1
RezaDorrani
Level 10

Re: Using StartWith and Search

Hi @DonutsSauvage 

 

Filter(DataTable,StartsWith(Column1,Input_Search.Text) || StartsWith(Column2,Input_Search.Text) || StartsWith(Column3,Input_Search.Text) )

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 52 members 4,705 guests
Please welcome our newest community members: