I’m completely a newbie in Glide with no coding background at all so I hope I don’t ask a silly question.
I have 2 tables, 1 acting as a Parent and 1 as a Child.
Columns in Parent table are like this:
Date of Purchase, Supplier Name, Items, Price
And columns in Child table are:
Supplier Name, Phone Number, Address
My question is, is it possible to input new Supplier Name from Parent table and make a new row in Child table with other columns beside Supplier Name is empty? User can then fill the empty columns in Child table after completing filling the Parent table.
Assuming you are using a native glide form, you could add an On Submit action that adds an extra row to the child table, but it will need to be a custom action, and it would need to check if a child row already exists for that supplier or not. That’s where it gets a little more complicated and fragile. I prefer using a custom form at that point. You would still need a custom action on a submit button with conditions to add rows to both tables or only one table depending on if a supplier row already exists in the child table.
I would make a relation of Supplier Name from Child to Parent and use the Choice component. Instead of showing “—” the Choice will show “Add New” and create a new row in the Child table.