cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

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

View solution in original post

1 REPLY 1
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,364)