Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updatable Views
Message
De
09/03/1998 11:06:51
 
 
À
09/03/1998 10:15:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00083366
Message ID:
00083411
Vues:
22
Thanks for the response. I've have already tried all you suggested. I guess what I failed to mention was that when I modify a record in the view, everything works fine. The base table gets updated properly. It is when I insert a record in the view I get "Uniqueness of index ID has been violated". I assigned a unique ID to the new record prior to inserting it in the view. When I click 'Ignore' the new record still get's inserted. What is causing this error? Below is my SQL statemnt for creating the view:

SELECT NVL(tt_IdDesc,"Invalid transact ID") AS tt_idDesc, mx_ID, mx_Date, mx_FinSize, mx_SrcID, mx_SrcType, mx_Ac_ID, mx_tt_ID, mx_tt_Code, mx_AShares, mx_FX_ID, mx_FX_Rate, mx_Module, mx_Descr, mx_New, mx_PostAmt, mx_Reviewd
FROM mTrnsAct INNER JOIN TranType ON tt_ID == mx_tt_ID
WHERE mx_SrcID == ?nCo_ID ORDER BY mx_Date

My CURSORSETPROP()'s are:
TABLE : mTrnsAct
KEYFIELDLIST : mx_ID
UPDATABLEFIELDLIST : (all except tt_IDDesc)
SENDUPDATES : .T.
BUFFERING : 3

Everything works fine for my single table views. What am missing?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform