How to Save Data in Multiple Tables with a Single Form
Related forms in Model-Driven Apps enable seamless management of data across multiple related tables within a single form. This feature allows users to view, edit, and save data for parent and child records simultaneously, ensuring consistent and efficient data handling.
Why Use Related Forms?
Related forms simplify data management by enabling users to:
Example: Contact and Account
Using a related form, the Contact form can display and manage associated Account details. This setup eliminates the need to navigate between separate forms, allowing updates to both records in one place.
Implementation Steps
1. Open the Contact Form
Create or open the Contact form to manage individual contact details (e.g., name, phone, email).
2. Add Account as a Related Form
Insert a related form (subform) into the Contact form as shown in the image.
3. Edit Records in One Form
Once the related form is added:
4. Save Changes
Save the form after editing. Updates will automatically reflect in both the Contact and Account tables, maintaining synchronization.
This streamlined process allows you to link child records with their parent records through the use of related forms and lookup fields, improving data management and efficiency within model-driven apps.
?