cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jernejp
Helper IV
Helper IV

Searchable combobox with large collection freezes application

Hi,

 

I'm building an application where the user has to select our company's business partner. I get the partner list from an API call, but the collection where I save it is extremely large.

So when I have a searchable combobox where the user can search for the business partner, it sometimes freezes the application, because the list is so long.

Is it possible to make the combobox wait for the user to input the first  (or first few) letters, before actually searching? 

 

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

@jernejp 


In that case, please try to modify your expression as:
If(Len(ComboBox1.SearchText) > 2,Filter(<Filter Query arguments>))
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

yashag2255
Dual Super User II
Dual Super User II

@jernejp 

 

For doing so, you can refer to below mentioned expression:
 
If(Len(ComboBox1.SearchText) > 2,Filter('PartnerList I',StartsWith(PartnerName, ComboBox1.SearchText)))
Here, PartnerList I refers to the name of DataSOurce and I am assuming PartnerName is the column that holds values for various partner name. Please replace the values in expression with actual attributes/control names.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
yashag2255
Dual Super User II
Dual Super User II

Hi @jernejp 

 

Can you modify your combobox items as:
 
If(Len(TextInput1.Text) > 2,Filter(<<FIlter Query Arguments>>))
This will only filter if two or more characters are entered in the textInput control.

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255 

So if I understand correctly, I'd then have a text input and a combo box, and would use the text input to filter the combo box?

Can it all be done within the combobox? So that the combobox is empty untill user writes 2 characters, then the filtering query is executed?


Thanks

yashag2255
Dual Super User II
Dual Super User II

@jernejp 


In that case, please try to modify your expression as:
If(Len(ComboBox1.SearchText) > 2,Filter(<Filter Query arguments>))
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hi @yashag2255, thanks for your answer.

How would I add a StartsWith function here? So if in my PartnerList I have a number of comapnies, and the user inputs "pa", it would search for all partners that begin with PA? 

yashag2255
Dual Super User II
Dual Super User II

@jernejp 

 

For doing so, you can refer to below mentioned expression:
 
If(Len(ComboBox1.SearchText) > 2,Filter('PartnerList I',StartsWith(PartnerName, ComboBox1.SearchText)))
Here, PartnerList I refers to the name of DataSOurce and I am assuming PartnerName is the column that holds values for various partner name. Please replace the values in expression with actual attributes/control names.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,294)