cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Search challenges

Dear @PowerAddict brother, It seems you are busy but if you have time please help me here, 

 

I have a gallery from SalesReturns and a text box to search items. 

 

I did the following formula on the Gallery Item properties, But it says expecting text type. , ID field is a number field I guess as that is an Automatic field coming from SP List, also I want to know how can I add mutiple columns to Search where those are having different data types such as chioces, dropdown,etc

 

Annotation 2019-12-02 065752.jpg

 

Osmand

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Search challenges

Try this:

If(IsBlank(TextInput4),SalesReturns,Search(AddColumns(SalesReturns,"ReturnID",Text(ID)),TextInput4.Text,"ReturnID")

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Search challenges

Hi @OsmandFernando, apologies for not being able to respond. Wasnt well this past week.

Anyways, you can use Search for text fields only. For others, I would suggest using Filter, or use AddColumns to add text values for the corresponding choices, numbers or any other type of columns.

For this ID column too, I would use AddColumns function to add a column say TextID to convert ID into text and then use it in Search.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

Re: Search challenges

@PowerAddict brother I am trying like below, 

 

If(IsBlank(TextInput4),SalesReturns,Search(AddColumns(SalesReturns,"ReturnID",ID),TextInput4.Text,"ReturnID")
 
But not working 
 
Osmand
Super User
Super User

Re: Search challenges

Try this:

If(IsBlank(TextInput4),SalesReturns,Search(AddColumns(SalesReturns,"ReturnID",Text(ID)),TextInput4.Text,"ReturnID")

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

Re: Search challenges

Thank you @PowerAddict  for always there to support for us. It worked

 

I further enhanced it 

 

If(IsBlank(TextInput4),SalesReturns,Search(AddColumns(SalesReturns,"ReturnID",Text(ID),"Customer",Text(CustomerName.Value)),TextInput4.Text,"ReturnID","Status","Customer"))

 

Osmand

Super User
Super User

Re: Search challenges

Great work @OsmandFernando!

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,917)