Hi
While looking for a way of adding a dynamic increment to my repeating gallery, I came across this solution:
https://powerusers.microsoft.com/t5/Building-Power-Apps/powerapps-dynamic-increment/td-p/299063
So I implemented it and it worked as a charm (except for a couple of adjustments I had to make because of my environment)
The thing is
I have no clue whats going on there.
Why on the close button we need to create a new collection from scratch with the same fields as the main one, if we are only going to use it inside this Close button functionality? What's the purpose of it?
And why are we doing a Clearcollect afterwards?