Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One to many with Optimistic Table Buffering
Message
De
28/09/2001 09:39:13
 
 
À
27/09/2001 21:16:01
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00561751
Message ID:
00561885
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform