Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table won't update from view
Message
From
03/11/1998 17:52:36
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00154066
Message ID:
00154139
Views:
17
Don't buffer the tables when using views, since views are really just a buffer for your tables. If you buffer your tables, you will need to issue 2 TableUpdate(), one for the view (first) and one for the tables (second). It's best just to open the table unbuffered and to issue a single TableUpdate() in the view.

HTH

>I am using a view that gets data from two tables and when I update it does not get to the table. Both tables have buffering enabled. The view has the SQL update checked and the fields that need to be updated are also checked. On the form the buffermode is set at 2 - Optimistic and the DE on the form has the bufferoverride set at 5 - Optimistic table. This form actually has two views associated with it the payment views updates just fine but the trip info doesn't. The payments are in a grid and trip info is in various text and edit boxes. The code to update is the same:
>Select lv_name
>=tableupdate()
>Select tablename
>=tableupdate()
>
>I really don't know why one view would send the update thru and the other doesn't. one other thing while I was trying to track this down I put in a getfldstate on one of the fields for the trip info and
>I get back a 1 even when I chage the field.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform