Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapters: How to set Default value and RuleExpress
Message
 
À
04/01/2004 06:51:05
Jean-Pierre Overbeek
New Limit Database Solutions
Amsterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863700
Message ID:
00865094
Vues:
22
Your database back-end should be assigning default values - not your client.
>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