web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / I would like to create...
Power Apps
Unanswered

I would like to create a row counter inside a Gallery control, that can also reorder the rows using a dropdown control. this should be able to connect to a sharepoint number field, and updates the control choices based on number of rows and save to SP.

(0) ShareShare
ReportReport
Posted on by 2

Good day.

 

I would like to implement a Row counter inside Gallery control, which is connected to a sharepoint list, using a dropdown control.

 

And that control is connected to a regular Number column in Sharepoint Online List, which we name the column Choice ( not to be confused to a Choice Field in sharepoint)

 

And id like that control to behave like the order reordering that you have when you Edit a view in sharepoint, to order the positions.

 

I find it very hard on how to implement this, and to have that control populate the order choices programmatically and correctly according to the current number of rows in that list, and to update it back to sharepoint on value change.

 

I tried to search online and youtube, but i cannot find any correct implementation.  This is an important functionality that i need to have on my app, as this is the feature of a previous app deployed in our Sharepoint 2013 site which needs to be updated to powerapps , due to a revamped list structure.

 

I hope that someone can help me build this control. i am really stuck and my users needs this functionality.

I will attach the photos of my app to describe the functionality that i would like to implement.

 

Hoping for your soonest help and support.

THank you very much,

 

Rommel

 

image 1 - powerapp to create reorder row dropdown control.pngImage 2 - number field in sharepoint list.pngImage 3 - the list view that i am working it.pngImage 4 - the rows order what we want to do in powerapps.pngImage 5 - the Old app that contains the custom dropdown column reorder connect to number field in SHarepoint.png

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @rsudan_washcorp ,

    What code is in the current Items of the gallery? Also Choice is a bad name for a field, but I am assuming you simply want the rows numbered in the order they are presented in the gallery?

  • rsudan_washcorp Profile Picture
    2 on at

    Hi @WarrenBelz ,

     

    Good day and thank you for your reply. 

    Yes, the field name is confusing, it was copied from an older sharepoint list structure. It should be named Order. 

     

    And yes, i want that dropdown control to count the row order. So at first if its only 1 record, it will only have 1 choice inside. If there are 2 records, then the choices will be [1,2], If 3 then [1,2,3], which the first row will have 1, second row will have 2, and 3rd row will have 3. 

     

    Then that defines the order. For example in the 3rd row, where that dropdown control has [3] value in it, then when i click that control, if i select [1], Then it should reorder that row to be the first row in the gallery, and the other items will be reordered correctly according the number ascending. 

     

    The items property of the Gallery is a filtered connection to the Bid Forms list . 

     

    Filter('Bid Forms', EmployeeNumber = First(dt_MyCraft).'Employee No' && IsBlank(Submitted) && Deleted = false && Now() < DateTimeValue(Bulletin_x0020_Lookup_x003a_Clos.Value))

     

    Please advise. 

    Thank you. 

     

     

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @rsudan_washcorp ,

    Are you asking for dynamic content for the choices of a multi-choice combo box based on the number of rows rather than (as I assumed initially) simply numbering the rows in the gallery?

    I can do the first for you, but the second is not possible to my knowledge.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard