Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the Primary Key
Message
From
10/12/2001 03:05:28
 
 
To
10/12/2001 02:33:04
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00591952
Message ID:
00591957
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform