Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA UpdatableFieldList and UpdateNameList
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01473358
Message ID:
01473365
Vues:
29
>>Hi,
>>
>>I am trying to determine if how I am building values for properties UpdateFieldList and UpdateNameList for a CursorAdapter has a downside.
>>
>>What I am doing is dynamically (when creating a CA for a table) build the values of these properties bases on the structure of the table and include all columns of the table. That is, I do not exclude the PK column or any other column. Is there a potential problem with this approach?
>
>Yes, you should EXCLUDE the PK field from the list. If PK is identity field you can not update it anyway.

But UpdateNameList must have PK field, otherwise, updates won't work; isn't it correct?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform