Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views Inherit Default Field Values?
Message
From
12/04/1999 09:38:58
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00207409
Message ID:
00207417
Views:
10
>Using VFP 6. I ran into a curious problem this weekend on an updatable, parameterized view. My source table has a key field with a default value of GetKeyID("TableName", "KeyName"). I pass the actual table and field name to the function.
>
>I know the view is supposed to inherit the default value of the field in the source table but when I Insert SQL into the view, the KeyID value is 0. I do not include the KeyID field in my Insert command's field or values list in order to get the GetKeyID function called. The key id is not valued until I run the TableUpdate procedure. I am using optimistic table buffering here.
>
>Is this normal behaviour? I worked around this by explicitly calling my GetKeyID("TableName", "KeyName") function to return an ID and used that value in my Insert command.

This is normal behavior.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform