Subject | How to save a parent-child relation? |
---|---|
Author | W O |
Post date | 2011-08-20T10:25:51Z |
Hello everybody
I have two tables in a parent-child relation.
How can I avoid to save a row in the parent table if there is not a row in
the child table?
If the parent table has a row and the child table has one (or several) rows,
it is ok.
If the parent table has a row and the child table has not one (or several)
rows, reject.
Thank you in advance.
Walter.
[Non-text portions of this message have been removed]
I have two tables in a parent-child relation.
How can I avoid to save a row in the parent table if there is not a row in
the child table?
If the parent table has a row and the child table has one (or several) rows,
it is ok.
If the parent table has a row and the child table has not one (or several)
rows, reject.
Thank you in advance.
Walter.
[Non-text portions of this message have been removed]