Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple New Children on Add New Parent
Message
From
13/04/2001 11:23:20
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00494819
Message ID:
00495300
Views:
13
>Hi James,
>
>Re-read the Event Objects in the Dev Guide. Other than add another object (that does what I am already doing in a method) to the class I do not see where it can be of help here. Can you explain why you think this is the way to go?
>
>The problem is how to maintain the parent child relationship when adding a new parent and having multiple new children for that parent simultaneously. A single new parent will beget one or more children automatically and display them to the user along with a blank parent record.
>
>The parent table is Row buffered. The child table is tabled buffered.
>
>Bob

Bob,

The advantage of using an event is that you can wrap the functionality of using two or more bizobjects into one event. For instance, in your form's save event, you can call your event object, which would instantiate both your bizobjs together. If a new record is successfully created in the parent, it is easy to add multiple records into the child object from inside the event object. In other words all the functionality is encapsulated inside one object. This is the main advantage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform