Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updatable VIEW
Message
 
À
16/03/2001 21:28:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00486195
Message ID:
00486956
Vues:
12
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform