Following up on the development of an AppSheet app to manage the creation of ComboKits from existing kits. The goal is to generate a PDF report listing all the materials required for each ComboKit.
My table structure is as follows:
ComboKits: Contains general information about each ComboKit.
ComboKits_Details: Contains details of the kits that make up the ComboKit (and how many of each kit).
Kits: Contains general details of each kit.
KitMaterials: Contains details of the materials that make up the kit (and how much of each material).
Materials: Contains the list of materials.
Table relationships:
- A ComboKit can contain one or more ComboKit_details.
- A kit is associated with one or more KitMaterials.
- A Kit detail contains a material and the quantity of that material.
Here’s a GIF showing a walkthrough of the current app:

This other table in a separate spreadsheet contains the reference to the PDFs generated for each ComboKit, so that I can display them in the ComboKits view.
This is the expected template for the report:
The expected workflow is as follows:
- The user searches in a view of the ComboKits table to see if the ComboKit they are interested in already exists or if they need to create a new one.
- If the ComboKit already exists, they only need to download the PDF containing the list of materials for the ComboKit.
- If the ComboKit does not exist, the user must create it by choosing one or more of the existing kits.
- When creating or updating the ComboKit, as long as its status is “Released”, the bot will generate the PDF for viewing or downloading.
My problem is that I can’t build the correct start expression to populate the report with the list of materials from the Materials table, especially when a ComboKit is composed of several levels of nested kits.
In the report, the table listing materials should display the total sum of each material found in the different KitMaterials, ensuring that the same material does not appear more than once in the table. Here’s an example of the desired output.
Could you please help me with this?











