First, thanks to all question askers and answerers here, the tutorials and documentation are good but here in the forums is where I’ve learned the most in this journey
I have my app working with each subtopic of a topic in a separate database object (firebase), loaded in a repeat. Eg past, past1, past2 only they’re all named ‘past’ (different id-s). I’d like to be able to list just topics and have circles that can be filled so the user knows which subtopics they’ve done. I do have savedAnswer and answerSaved tf so I can check for completion and fill the circles but am confounded by how I could filter the repeat for, well, repetition, and list circles instead for any with more than one of the same name.
For clarity, what I have now : a selectable list (background changes when completed) -
yesterday
yesterday
today
today
today
What I’d like to have : where x is a circle that takes the user to the page for that specific subtopic and can be filled when completed -
yesterday o o
today o o o
If I break it down, I’d (I think) :
check if there is more than one object with the same name (maybe IF((LOOKUP(dataCollection, current.name)>1), something?, something?)
display that name only once in the repeated list (set a variable to filter for unique names and a different variable to show any subtopic circles? Something from here maybe? - Performing actions in a repeated list item - #9 by Erin_Wagner? or IF condition for dropdowns hooked to map() REST API or Sets currently repeated item property to a new value)
display the right count of circles (component element icon in repeat I imagine, with a two-way variable to pass the number?)
and have each circle pass the right id to the next page (definitely no clue, as I failed in many different ways to call records from non-repeating items when trying to bypass the in-repeat problem and just have the right number of subtopic circles non-dynamically, and if I can’t do this last bit then working on the first ones are fun but not terrifically productive)
Is this even possible? Is there a more elegant way to look at the problem? Any and all guidance appreciated! Changing data structure is an option if it’s the best way to make this work, I’m only using a few records while building
(The topics will not be changing, so if the most reasonable solution is actually to hard layout the main page and do everything else dynamically, guidance into why get record might succeed but not pass the name or id to the alert I used to troubleshoot would be welcome)