Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CBizObjNoListMaintForm & defaut value on view's field
Message
De
24/07/2003 15:23:52
 
 
À
23/07/2003 13:29:27
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00812793
Message ID:
00813251
Vues:
7
Jason,
I did some testing and your solution works. Thank you!
Let me ask you a final question regarding this and see if is posible to further improve it in an alternative way:
Instead of using YourBizObj.HasUserChanges()is it posible to use the SETUNMODIFIED() data access method when the BO is just created so from then on it will behave as no default value was ever present?
If so, where should it be called from?

Regards,
Roberto

>Roberto,

>First, I would add a method to the BizObj that checks if the field in question is the only one changed.

>Then add code to the forms checking that method. In your NoListMaintForm, that would be the Close() method:



>*This assumes you don't want to save unless the user has made changes.
>IF !YourBizObj.HasUserChanges()
> YourBizObj.Cancel()
>ENDIF

>RETURN DODEFAULT()
>I'm not sure where you're getting this message in the Find Form, but you would do something similar there...

>Hope that makes sense,
>---J
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform