Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the Primary Key
Message
De
10/12/2001 03:05:28
 
 
À
10/12/2001 02:33:04
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00591952
Message ID:
00591957
Vues:
19
I think I figured it out - I stepped through the code and saw that it was calling my table's newid() code, but that the newid() function used by that database required the table to be the currently selected table, or to have it's table name passed as a parameter. Neither of those was happening. I have to change the code to newid(tablename) in the default of each table.

>I have a view with a primary key field, which is set to autogenerate in the business object. However, after save is called, there is no key in the key field of the view. This prevents me from calling other views based on this key field.
>
>How can I access the auto-generated value? If the bizobj is set to autogenerate primary keys, shouldn't it be placed in the view?
>
>At this point, I'm requerying the whole view, which has too much of a lag.
>
>Thanks,
>
>David
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform