Form with two tables as source
I have two main and detailed tables.
When I add a new record to master, after that I need to add records to the detail table.
Is it possible to have a form with setSource () towing methods? Or do I need to make the first form and then add the second one with the id of the first one as a parameter
What might be the best approach?
thank
+3
AJM.MARTINEZ
source
to share
1 answer
yes you can call the form setModel () multiple times in atk4.2 and it will import the fields from the corresponding model and save them at the same time within one sql transaction.
+2
romaninsh
source
to share