I’m creating a meal planning app that contains a shopping list for users, based on meals that have been assigned to them. The way I’ve set it up is by creating a Meal Plan screen which contains an inline list of recipes and a list relation of ingredients (related to the selected recipes).
Within the details screen of the list relation, I’d like to consolidate ingredients and quantities instead of having them appear multiple times (because they’re in multiple rows).
For example if two recipes within the meal plan each contain 2 slices of wholemeal bread, how do I consolidate it to show 4 slices of wholemeal bread instead?
Also - is there a way to remove the > arrow at the end of each item in the detail screen of the inline list? I’ve disabled the action for a Detail screen to open but the arrow still stays there.
Hi ThinhDinh, thanks so much for your help! I’ve gone into Glide to try and follow your instructions but I can’t get this approach to work because I’ve set the data up a little differently.
Instead of each row containing a single meal plan, I have a multiple relation column to the meal plans and then a lookup for meal plan IDs - so there are multiple meal plan IDs that the Ingredient connects to.
Any advice on how to approach with this data structure?
Hi ThinhDinh, I’ve come back to look at this and I have set the data up per the instructions above. You mention Add a “first ID” column to return the first rowID from the relation. Can you please tell me how to do this? Everything else I believe I have in hand. Thank you again!