Walter Meester
HoogkarspelNetherlands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only