General information
Category:
The Mere Mortals Framework
>But (there's always a but) when I need to create a new "Client" I have to insert the new record in the 3 tables. So, in the OnNew method of the main BizObj I called the .New() method of both "Client" and "Name" BizObjs. When I try to save the new record in the Main BizObj, I receive an error, because the insert trigger is triggered and there is no matching record in the "Client" table and in the "Name" table (not yet, they're going to exist when "Client" BizObj and "Name"BizObj are updated). Did you get the problem ?
>
>Regards,
If you have Main... and it has two children, Name and Client... you should set main and client to add records with lNewChildOnNewParent to true.
The user should enter the name and client info, then when they press save the parent and children will be saved.
If your _ri doesn't allow that to happen... I think you have to move the rules from the database to the bizobj. Not sure though, perhaps Kevin will jump in on this one.
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only