Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CBizObjNoListMaintForm & defaut value on view's field
Message
De
23/07/2003 13:29:27
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
23/07/2003 12:34:14
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00812793
Message ID:
00812850
Vues:
15
This message has been marked as the solution to the initial question of the thread.
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

>Hello Jason,
>Thanks for your replay.
>I'm not sure if I follow your sugestion.
>Where should I place the code checking GETFLDSTATE() so the message wont come up?
>In addition to the form's closing it also happen when the user selects a record in the form companion Find Form, so I need to place code around there too
>Regards,
>Roberto
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform