cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anonymia25
Helper III
Helper III

Set limit to number of items display for combobox

Hello,
I am wondering if I can set limit to a combobox?
As I understand powerapps have 500 limit on the number of items that can be displayed. I'd like to set limit around 40 items as it would be a lot of work for user to scroll through 500 items.

Is that doable? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @anonymia25 :

Please try this solution:
1\Add a left icon and set it's OnSelect property to:

If(ThePage>=1,Set(ThePage,ThePage-1))

2\Add a right icon and set it's OnSelect property to:

Set(ThePage,ThePage+1)

3\Set the Gallery's items property to:

LastN(FirstN(
  Filter(Vendors, 'Vendors (Views)'.'Active Vendors'),
  (ThePage+1)*40),
40)

vbofengmsft_0-1631502716835.png

vbofengmsft_1-1631502725415.png

Best Regards,

Bof

 

View solution in original post

4 REPLIES 4
shivam38
Advocate I
Advocate I

Hey @anonymia25  to make limit of 40 items you need to follow the below steps:-

  • First Select Settings.
  • In Setting you will find an option as data row limit
  • By default it is 500 but you can customize it as per your requirement
  • You can set it in a range of 1 to 2000.

Thank You , I hope this will resolve your query

Hi @shivam38,
I am aware of the data row limit, but won't that affect the galleries row, etc in my app? I just wanted to filter one of the combobox which are linked to a dataverse that have around 1000 items. 

I wanted to know if I could set in the items property to only show 40 items when scrolling. I allow search for the combobox to access more.

Filter(Vendors, 'Vendors (Views)'.'Active Vendors')


Thanks!



Ethan_R
Continued Contributor
Continued Contributor

Hi @anonymia25 ,

Since the number of data/records loaded into the app will be used everywhere within the app.

(For example, say 100 records gets loaded into the app, combobox will show 100)

 

If you still need to limit records displayed in combobox, 

Use a custom combobox (which is a gallery) which uses pagination within. So you can go through 40 records per page. 

 

I hope this helps. 

v-bofeng-msft
Community Support
Community Support

Hi @anonymia25 :

Please try this solution:
1\Add a left icon and set it's OnSelect property to:

If(ThePage>=1,Set(ThePage,ThePage-1))

2\Add a right icon and set it's OnSelect property to:

Set(ThePage,ThePage+1)

3\Set the Gallery's items property to:

LastN(FirstN(
  Filter(Vendors, 'Vendors (Views)'.'Active Vendors'),
  (ThePage+1)*40),
40)

vbofengmsft_0-1631502716835.png

vbofengmsft_1-1631502725415.png

Best Regards,

Bof

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,755)