Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CBizObjNoListMaintForm & defaut value on view's field
Message
De
23/07/2003 12:02:11
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
23/07/2003 11:28:10
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00812793
Message ID:
00812811
Vues:
14
Hello Roberto,

The message you're seeing is based on checking GETFLDSTATE() and that function has no way of knowing whether the field was changed by the program or an end user.

I think the question here is whether you care to have your default value saved if the user doesn't alter anything.

If you do, issue a BizObj.Save() after setting the default value. If not, you can check GETFLDSTATE() in the form's close and issue a BizObj.Cancel() if nothing else has been changed.

Hope that helps,
---J

>I assigned a default value to a view's field. Now every time a user try to close my cBizObjNoListMaintForm (that uses that OB' view) a "Do you want to save your changes first?" message comes up. And that's confusing for users since this happen when user did not change anything.
>Is there any way to change this behavior in such a way that this message is shown only if user do change a field's value (interactively)?
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform