HI all . . .
I’m creating a food tracking app for kidney stone prevention. (They suck.) I’m stuck on a specific way to save and restore a repeating group with multiple fields. The ugly starter page I’ve got is below. As per development examples, I create a set of elements which define a portion of a meal and calculate oxalates consumed, the nasty bits that make kidney stones appear. I want to have those persist in a list as per the code example of a shopping list, but lists appear to be single item things.
My assumption is that I need to create a table of menu items and a table of meals and get the intersection to populate the repeating group with them. However, I’m stuck on how to populate the repeating group and can’t find a good code example. The documentation is a bit light on this subject too.
Can you point me to a code example for this?