Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One to many with Optimistic Table Buffering
Message
From
28/09/2001 09:39:13
 
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00561751
Message ID:
00561885
Views:
20
>Ola Oscar,
>
>You've raised some innnteresting questions. I'm not sure I can give you the right answer. But, lcascademessages is set to true by default, and it does affect the parent/child relationships for all the operations. What you could do is add a custom method in your bizobj called SetCascadeMessages() with a parameter to set this property from false to true and back again. Then I would simply copy the new() method from kBizobj to your subclass, insert a call to your custom method to set the lcascademessages to false in the beginning of the method and set it back again at the end.
>
>Of course you could just set the property right inside the new method, but you may need to set it from outside your bizobj at some point or from other methods as well. Don't be afraid hack the subclasses, that's what they are for.


Hola James

Thanks for your reply, the “new” method of the form is the one firing the “ask to save” message. The add operation is being fired from the toolbar.

At this point the lCascadeMessages property is not checked yet as I thought, probably the most convenient way to handle this will be the setting of field flags to “unchanged” through the SetFldState function.

Oscar
Previous
Reply
Map
View

Click here to load this message in the networking platform