Creating a parent-child relationship between cloned list is not easy in Thunkable, but it can be done. I’ve done a lot of work with clones, and I know it can get pretty ugly pretty fast. You may need to rethink certain UI elements based on what Thunkable CAN do, vs. what you WANT Thunkable to do. Having said that, this would be my approach…
At design time, create 2 “Master containers”, one for the parent list, one for the child list. These can be rows or columns, depending on your UI design. In each of these Containers, create one template “detail container”. Within each detail container, create all of the labels, images, text boxes, etc. to describe the list item. (e.g. Name, Description, Picture). These detail container will be the cloned elements. Set both detailed container visible property to false. Finally, in the design make both of the Master containers invisible. (hint: leave the templates and master containers visible while developing and debugging, then make then invisible when the form is working correctly).
Okay, now for the form open event. First, create a function to loop through the Parent Master Contain and delete all rows or columns not equal to the parent detail template. This will reset the parent list. Call this function during the OPEN event. Create a second function to loop through all of the row or columns components in the child Master Container not equal to the child detail template. Call this function in the OPEN even as well. Now the form is clean.
Create a third function to clone the Parent Detail template and populate it. Now here comes the magic. Create a button with either an icon or some other picture. Set the Text Color = NULL (transparent) and set the text property to some key value that can be used to open the child list (some child key value, possibly mulitple values delimited by some character like |).
Create an Any Button Click event. Check the component object for the image or the text for the image or text format you used in the parent. If it is one of those buttons, the use the information in the component to populate this child list. First, call the function that delete all of the cloned elements from the Child Master Container.
Whew! I know that was kind of vague and very long. Perhaps there is an easier way, but I don’t know it. Again, what you are trying to do is not easy in thunkable, but it can be done…
Good Luck and Happy Thunking!