Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating, Saving and deleting from a remote view..
Message
From
19/10/1998 10:15:54
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, California, United States
 
 
To
19/10/1998 05:09:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148032
Message ID:
00148088
Views:
38
If you try to create a view in the View Designer, you will see a Tab named "Update Criteria". It is necessary to set values for key fields, updatable fields, and send SQL Updates to a view before it will update. If you look at your view in the view designer after you create it you will probably see that no fields are marked as key fields, no fields are marked for update, and Send SQL Updates is greyed out or unchecked. This causes TABLEUPDATE() to do nothing.

You can set these properties of the view programmatically using CURSORSETPROP().
Look at the properties "SendUpdates","Tables","UpdatableFieldList","UpdateNameList","UpdateType", and "WhereType".

The macro substitution has nothing to do with your problem. Once the view is created the SQL is static, and VFP doesn't care where the string came from.

Eric Shaneson
Cutting Edge Consulting

>Sorry in the above code it should be
>CREATE SQL VIEW workinst CONNECTION upsize ;
> as &LSQL
>note the & sign!
Eric Shaneson
Cutting Edge Consulting
Previous
Reply
Map
View

Click here to load this message in the networking platform