Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP on back-end, and Primary Keys
Message
From
23/12/2002 15:28:03
 
 
To
23/12/2002 15:17:42
Mark Ganchrow
Dataware Technology Group, Ltd.
Rochester, New York, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00735492
Message ID:
00735496
Views:
8
Technically, you can't do a VFP back end have a C/S application as processing still occurs on the workstation. In a true C/S application, there is database processing that occurs on the server. This won't happen with VFP.

The VFP ODBC driver doesn't support calling stored procedures for default values, which is what I assume you are doing.


>I'm setting up my first C/S app that has VFP (7) on both the front and back ends, and running into a problem when trying to add a record to the remote view, to pass back to the actual table.
>The problem is that the table won't accept null values in the primary key, so the TABLEUPDATE is returning false.
>Of course, that's not the problem - it's just the symptom. The actual problem (as I see it) is that the DEFAULT values of the fields (including the PK) in the back-end data don't get populated when I add a record to the remote view.
>So how do I get around this? The view is defined properly, I believe - all updates are sent from the view, and the DEFAULT values work properly when I work on the back-end table directly.
>The most obvious part of this problem affects the PK field (in each table), but it will also affect the default values in other fields.
>TIA,
>Mark
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform