cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andrei_Cimpoes
Helper II
Helper II

Multiple search on a database

Hi community,

 

I have a Power App. I added a textsearchbox and a gallery. I connected the gallery to a datasource. In a column from the datasource I have a large string and when I type in the textsearchbox (e.g. python,java) I want to have in the gallery those records that have python and java. How can I achieve this?

 

Thank you!

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Andrei_Cimpoes,

Have you solved your problem?

Do you want to filter the Gallery based on search box with multi strings?

Could you please tell me that if you want both the strings you input or either of them you input?

 

If you want to filter the records that including python and java in a column at the same time, you should try to set the Gallery Items property as below:

Filter([@Actions],  TextSearchBox1.Text in MultiLine)

vqiaqimsft_0-1637044183456.png

If you want to filter the records that including python or java, you should refer to the formula from @CNT.

Best Regards,
Qi

View solution in original post

Hi @v-qiaqi-msft ,

 

I've managed to solve this issue. I create four textboxes and added a formula 

Filter([@Actions],  TextSearchBox1.Text in MultiLine)

with the and operator and it's working. 

 

Best regards,

Andrei

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@Andrei_Cimpoes Try this,

Filter(yourDataSource, yourColumnName in textsearchbox.Text)

v-qiaqi-msft
Community Support
Community Support

Hi @Andrei_Cimpoes,

Have you solved your problem?

Do you want to filter the Gallery based on search box with multi strings?

Could you please tell me that if you want both the strings you input or either of them you input?

 

If you want to filter the records that including python and java in a column at the same time, you should try to set the Gallery Items property as below:

Filter([@Actions],  TextSearchBox1.Text in MultiLine)

vqiaqimsft_0-1637044183456.png

If you want to filter the records that including python or java, you should refer to the formula from @CNT.

Best Regards,
Qi

View solution in original post

Hi @v-qiaqi-msft ,

 

I've managed to solve this issue. I create four textboxes and added a formula 

Filter([@Actions],  TextSearchBox1.Text in MultiLine)

with the and operator and it's working. 

 

Best regards,

Andrei

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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