Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating a View Primary Key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01089683
Message ID:
01090704
Vues:
23
>what you are saying is that you are sending a tableupdate from the changed view but the pk field is not updating?
>
>I think the issue is probably the view setup, when you create a view in the view editor it defaults to updating all fields but the PK.
>
>in modify view > update criteria, check that the pencil is ticked next to your PK field, and also that the send sql updates box is ticked at the bottom.
>
>save that and it should now work.
>
>Hope thats what you need.
>
>Ken.

Thanks Ken but the problem is that the View PK is not being updated. When I add a new record the PK is "0", after TableUpdate the Table is updated and a new PK is generated, for example 1110, but the View PK still remains "0" and I don´t want to requery the View only to update a single field of a single record.
I think that I´ll have to change my PK field to Integer and use the NewId() function.

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform