Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA UpdatableFieldList and UpdateNameList
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01473358
Message ID:
01473365
Views:
30
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform