I apologize for my lack of SQL knowledge - working hard to learn on my own. I hope that AppGini can help me get this project together.
I have a database holding records for a dog clubs titles. It has 5 tables with one (Demographic) acting as parent in a one-to-many relationship.
When a new record (new dog) is entered, I would like to have records also added to each child table with the RegNo (foreign key fields) populated.
Example
When a new dog is entered into the Demographic table all three fields are populated (RegNo, RegName,Owner)
I want a new record also created in the Drafting table (RegNo, NDD,ODD,DDV,ODDV) with the same RegNo and default values in the other fields).
Is this possible in AppGini? Can it be done via a Hook?
Thank you for any assistance on this.
New record from parent
Re: New record from parent
Yes, you can use the Demographic_after_insert() hook to insert the child records. Please refer to the hook documentation for details and examples: http://bigprof.com/appgini/help/advance ... ter_insert

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.