Hello Appsheet community,
I have quite an interesting scenario/complication that I wanted to share and see if anyone has a solution.
Lets start by giving some background: I’m building an app for managing the distribution of products to clients, and for that I have these tables:
-
COMPANIES (it is the table with generic main company information)
-
CONTACTS (table with contact information from people working in such companies)
- There is a column “contactCompany” that references the COMPANIES table
-
BRANCHES (information of branches of the main company)
- There is a column “branchParentCompany” that references the COMPANIES table
-
DELIVERIES (Details of a specific Deliveries made by the Branches)
- In this table there are these columns
- “deliveryBranch” that references the BRANCHES
- “deliveryParentCompanyContact” that references the CONTACTS table
So, there are moments when I’m creating a new Delivery order for a new Company and this is the process I go through:
-
Go to a “Table” view where I can see all my “Deliveries” and click on the (
) button to add a new delivery. -
The “Deliveries_Form” view is displayed, and I have to select a Branch for the deliveryBranch column. But since in this example I’m creating a new Company, I need to select the option to create a NEW Branch.
-
The “Branches_Form” view is displayed, and in similar way I need to select a Company for the branchParentCompany column, but since I’m creating a new Company, I need to select the option to create a NEW Company.
-
The “Companies_Form” view is displayed, and I add all the information for the New company and click on “SAVE” (but so far the company is not yet created).
-
Then I see again the “Branches_Form” view where I can add all the other needed information and click on “SAVE” (and similarly, so far the branch doesn’t seem to get created yet)
-
Then I see again the “Deliveries_Form” view where I need to select a Contact for the deliveryParentCompanyContact column, but since this was a new Company, then I need to create a new Contact, so I select the option to create a NEW Contact.
-
The “Contacts_Form” view is displayed, and I need to select a value for the contactCompany column… but I would like to have this value Pre-Populated with the company I had just created in Step 4… but I don’t seem to know how to do this…
Any idea on how I can go about doing this?