cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
beniwal
Level: Powered On

serial number in gallery

Is there any way to dynamically number my rows in a gallery control?

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: serial number in gallery

Hi @beniwal 

 

To create such a gallery, can you try to follow this blog post by me:
 
In this I have depicted a scenario to create auto numbered rows in a gallery. 

 

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

2 REPLIES 2
Dual Super User
Dual Super User

Re: serial number in gallery

Hi @beniwal 

 

To create such a gallery, can you try to follow this blog post by me:
 
In this I have depicted a scenario to create auto numbered rows in a gallery. 

 

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

Super User
Super User

Re: serial number in gallery

Hi @beniwal ,

 

Assumptions:

  • Your app is adding records to a local Collection
  • Your app uses a Gallery control to visualize the Collection
  • Non-unique, sequential row numbers ("id") are added to the Collection

 

Add the following to your trigger (Button-OnSelect?) when Collecting a new record:

Collect(colMyCollection,
    {id: CountRows(colMyCollection) + 1, value1: txtBox.Text, value 2: ddSomething.Selected.Value}
)

This will increment the records in your Collection based on the count of rows.

 

If you need UNIQUE event (row) numbers, use this instead:

Collect(colMyCollection,
    {id: GUID(), value1: txtBox.Text, value 2: ddSomething.Selected.Value}
)


Hope this helps!

 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,141)