General information
Category:
The Mere Mortals Framework
>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
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