Forum > Databases

Master Detail Single button for commit

<< < (3/3)

rvk:

--- Quote from: chtilux on September 20, 2022, 09:27:11 am ---But when I insert more detail records for the same master record, only one is there when I reopen the form.
--- End quote ---
You need to show more of the relevant code.

If you only call TProductW.saveContent once, then yes, you'll only get one record.

You need to post and applyupdates for every subrecord you want to save.

chtilux:
@rvk
Thank you for the answer, it helps me ;-) I thought ApplyUpdates would apply all updatesPrending of the dataset to the database.


--- Quote ---If you only call TProductW.saveContent once, then yes, you'll only get one record.

You need to post and applyupdates for every subrecord you want to save.

--- End quote ---

Zvoni:
…… and people laugh at me, when i say i don‘t bother with that, but do everything via SQL-Statements……

Navigation

[0] Message Index

[*] Previous page

Go to full version