Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double hit on NewID()
Message
From
24/09/2001 15:57:54
 
 
To
24/09/2001 10:59:55
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00559921
Message ID:
00560180
Views:
25
>We've run into this early and often...
>
>1st check - Make sure you're view's primary key field is marked as updateable. For some reason, it's default setting is not updateable.
>
>2nd check - If you're running Stonefield, make sure you aren't pulling in default values from your table into views ("View field property inheritance" is the name of the setting). Otherwise, the view will cause NewID() to fire automatically, and then the framework will fire it again when it's trying to populate the PK field. I think Kevin fixed that piece of code in the framework to check the value in the field first to make sure it's blank before running NewID() again, but that all depends on which version of Mere Mortals you have.
>
>---J
>

Didn't you dub this phenomenom as Double Dipping? I thinks it's an official Mere Mortals term now...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform