Information générale
Catégorie:
The Mere Mortals Framework
Hello,
I am experiencing a very strange problem concerning the IsChanged method of either cBizObjForm or kBizObj. I am being prompted to save changes to the business object even though I have not made any. A little background first. I have subclassed kBizObj into a class KeyBizObj. We have had an occasion to put some code in the IsChanged() method of KeyBizObj. This code only runs if a logical field we have is set to .T.. Otherwise, it issues a DODEFAULT to run the normal code. When the form calls it's IsChanged method, llischanged is set to .F. When it makes its call to the IsChanged method of the business object, the business object method is returning .F. for llischanged. However, when I get back to the form method, I am seeing that is has changed to .T. somehow. In trying to diagnose the problem, I temporarily took my code out of the BizObj IsChanged method. The bizobj method returns .F., which is what I would expect. I went back to KeyBizObj and put in a set step on and a dodefault(), and the bizobj method returns .T.. I take out the set step on and dodefault(), and the bizobj returns .F.. GETFLDSTATE returns all 1's in the business object in both cases. It appears that if I put any code in the IsChanged method in the bizobj, I am not getting the correct results. I am a little confused by this behavior. Has anyone ever seen anything like this?
Thanks,
Brian
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement