I am trying to prototype up an activity log, where the user enters how many miles they completed and the date, and a new row gets added to their activity log. I’ve successfully made it this far, and have made it sort in descending order by date so that the most recent activities are at the top.
What I’m struggling with is adding a “day” column indicating what day the activity took place, starting with 1. Ideally the day would correspond with the date, so if you don’t log an activity on day 8 for example, the numbers would jump from 7 to 9. I imagine that will be complicated, so I’d be happy with just getting that “day” column to increase by 1 each time you add an activity, and to be in descending order like the “date” column." Users should be able to add activities in any order and they’ll be sorted appropriately in the log.
Can I use the item index for this, or do I need a custom sort column like in this solution? Add new row at top of repeater
I’m fairly new to manipulating repeater data, so any help would be greatly appreciated.