posted 15 years ago
a).I have a Trade object which can have multiple status's. One to Many relationship
b.Now,I have inserted a new record with a status of 'New' in the parent(Trade) and child (TradeDetails) tables.
This works fine.(Code is attached below).
c.My Query is:
Now 3 days later, I want to enter a new record in the child table with the same 'parent id'
and status set to 'Verified'.
How can I insert a new record only in the child table with the status set to 'Verified'
and then another with the status set to 'Executed' for the same parent?
i.e 1 Parent - 3 Children entered on different times.
I hope I am clear in my query.
My code to create a new record in Parent and child is below.