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

View solution in original post

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

View solution in original post

5 REPLIES 5
Dual Super User
Dual 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 Helper IV
Helper IV

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

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

View solution in original post

jernejp Helper IV
Helper IV

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? 

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

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,059)