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

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

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

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,944)