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

serial number in gallery

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

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

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
yashag2255
Dual Super User II
Dual Super User II

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

seadude
Memorable Member
Memorable Member

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,199)