Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defaults in cBizObjNoListForm
Message
De
16/10/2000 13:21:02
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
15/10/2000 21:10:08
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00429646
Message ID:
00429854
Vues:
30
>All,
>
>I set default values for my view in the OnNew method of my business object. I use the view in a cBizObjNoMaintForm. I need a way to ignore the default values when determining if the record is empty when leaving the form. I get a "Do you want to save the changes first" message.
>
>Any ideas?
>
>Rex

That message comes from the IsChanged() method of the primary business object. It uses the field state, so if you use SetFldState() in your OnNew() you can trick it into thinking nothing has changed. Kevin does this when he sets fields having default values defined in the table.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform