Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapters: How to set Default value and RuleExpress
Message
De
08/01/2004 11:17:33
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863700
Message ID:
00865102
Vues:
30
>Your database back-end should be assigning default values - not your client.

Yeah right and I'm the pope.
This is the greateses nonsense I've ever heard.

Of course in other environments (like .NEt) it might make sense, but not in an environment where you've got a local database.

Walter,



>>Hi,
>>
>>Is it possible to use default values and RuleExpressions in CursorAdapters?
>>
>>We would like to move our updateable views (with default values and code in RuleExpression) to cursor adapters. For the views we set all kinds of default values for fields:
>>
>>cStatus c(1) default 'I' RuleExpression 'FillStatusUpdate()',
>>tStatusUpdate t
>>
>>function FillStatusUpdate
>>replace tStatusUpdate with datetime()
>>return .t.
>>
>>Appending a record to the view based cursor fills the cStatus field with 'I'.
>>Updating the cStatus field fires the FillStatusUpdate() function.
>>BUT this doesn't work in CursorAdapter based cursors!!!
>>
>>Please help,
>>TIA
>>
>>Greetings,
>>Jean-Pierre.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform