Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double hit on NewID()
Message
De
24/09/2001 15:57:54
 
 
À
24/09/2001 10:59:55
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00559921
Message ID:
00560180
Vues:
26
>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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform