Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapters: How to set Default value and RuleExpress
Message
From
08/01/2004 11:17:33
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863700
Message ID:
00865102
Views:
27
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform