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 / Change Row Number by d...
Power Apps
Unanswered

Change Row Number by drop-down and autoincrement items below

(0) ShareShare
ReportReport
Posted on by 37

Is it possible to change the item numbers of the other items in the gallery below. I can get the item to move but am having no luck sorting the items below in incremental order.

 

I have a patch on the oncheck to change the item number in the datasource which reflects immediately. However, I am unable to get the other items to reflect this change, which means manually going in and changing them all. I have tried a for all but that doesn't work

 

 

 

 

Screenshot_2022-04-04-23-02-31-966_com.microsoft.msapps.jpg
Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Matthewvize ,

     

    Could you please share more details about your scenario? I cannot understand what's your goal based on your words. I haven't seen a Check box so where is the OnCheck property? Besides, what's the data source for the Gallery in the Items property?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Matthewvize Profile Picture
    37 on at

    Hi I meant OnChange Property. Basically it's a list of item when I change one 

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Matthewvize ,

     

    Do you mean you will need to make all the other items that below the item you have modified the number having the auto changed with the auto-increment numbers? It's hard to understand, but if true the answer will be no. You will have to manually change the numbers one by one.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Matthewvize Profile Picture
    37 on at

    Hi There, thanks for the reply.

     

    I think I just need to forall patch anything over the selected number to the collection in the galley.

    ForAll(Sequence(Filter(collection,questionnumber>self.selected.value)) As Records, Patch(collection, Records, {QuestionNumber : Records.Value})

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard