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

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

Re: Searchable combobox with large collection freezes application

@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!
Super User
Super User

Re: Searchable combobox with large collection freezes application

@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!
5 REPLIES 5
Super User
Super User

Re: Searchable combobox with large collection freezes application

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!

jernejp
Level: Powered On

Re: Searchable combobox with large collection freezes application

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

Super User
Super User

Re: Searchable combobox with large collection freezes application

@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!
jernejp
Level: Powered On

Re: Searchable combobox with large collection freezes application

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? 

Super User
Super User

Re: Searchable combobox with large collection freezes application

@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
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: 45 members 4,933 guests
Please welcome our newest community members: