Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updatable VIEW
Message
 
To
16/03/2001 21:28:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00486195
Message ID:
00486956
Views:
13
Let me make a stab at this.

I think that you need to document both tables:
DBSetProp('vPrintP','View','Tables','printP, convPlan')

You need an update type:
DBSetProp('vPrintP','View','UpdateType', 1)

HTH

__Stephen

>I use following statement to create a updatable view
>
>OPEN DATA vPo
>CREAT SQL VIEW vPrintP AS ;
> SELE printP.id,qaSn,po,cusId,convPlan.qty,;
> FROM po!printP,po!convPlan ;
> WHERE printP.planId = convPlan.id AND;
> issue = ?mDate AND;
> ORDER BY qaSn
>
>DBSetProp('vPrintP','View','Tables','printP')
>DBSetProp('vPrintP.id', 'Field', 'KeyField', .T.)
>
>DBSetProp('vPrintP.qaSn', 'Field', 'UpdateName', 'printP.qaSn')
>DBSetProp('vPrintP.qaSn', 'Field', 'Updatable', .T.)
>
>DBSetProp('vPrintP', 'View', 'SendUpdates', .T.)
>
>
>My view are stored at Vpo DATABASE, my table are stored at PO Database.
>
>When I update the change by TABLEUPDATE(), system tell me cannot update the table. Why??
>
>I need to open View Designer, Set the Key Field, updatable fields manually in order to make View work properly.
>
>Why??
>
>TIA.
Previous
Reply
Map
View

Click here to load this message in the networking platform