How do I insert a dynamic list into a collapsible block content?
First, a little background for context:
I have a restaurant app which displays the restaurant's menu. On the back end, the menu consists of a collection called MenuItem, which has all the items on the menu (e.g., hamburgers, cheese sticks, sodas, ice cream, etc.). This MenuItem collection has a pointer to a separate collection called ItemType. ItemType is just a list of types, with values like 'Appetizer', 'Entree', 'Dessert', etc.
Next, my goal:
I want to have a collapsible block set with each ItemType value as a header, and under each header, a list component with all of the MenuItems that fall under that ItemType. I've mocked up a sample of what this might look like:
Now, here's what I've done so far:
I have created a collapsible set, with a webservice to populate the headers from the ItemType collection. It works as intended.
I have created a list, with a webservice to populate the list items from the MenuItem collection. It works as intended.
Finally, my remaining challenge and the reason for this post:
I tried dragging the list component into the collapsible block content, and when I test it, the collapsible block headers still show the ItemTypes correctly, but the content sections are empty. This implies that the webservice which was working outside of the collapsible set is now failing.I've tried e-mailing support, and so far, the majority of the responses have basically pointed me to the documentation for mapping to components. This documentation only shows how to map to a collapsible header. It doesn't show how to map to the content section.
Can anyone point me in the right direction here? I can't find ANY documentation that addresses what I'm trying to do. Has anyone done this (or something similar) before? Any thoughts on what might be the solution?
Thanks!
Chris