Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help! View not updating table
Message
 
À
10/05/2000 11:32:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00367888
Message ID:
00368183
Vues:
27
In my data environment I have 2 views. I have lv_cto_u which I do INSERT command (The INSERT works fine). The Second View in my data environment is lv_employee_u which I do UPDATE command (this one is the one thats failing to update the core table). The form is set to private datasession and pessemistic buffermode. Do you mean double buffer as in I can't have two views existing in data environment? I am doing tableupdate at end of FOR loop and the insert seems to work. I am also doing tableupdate for UPDATE command while in for loop and that doesn't seem to work. I have even tried tableupdate on the core table employee (for view lv_employee_u) and that didn't work. I don't seem to understand double buffer.

for aa = 1 to l
h = .a__gen10[aa,1] &&old snapshot cto
p = a__gen20[aa,1] &&new snapshot cto
q = a__gen20[aa,2] &&mew snapshot cto date
r = a__gen20[aa,6] &&new snapshot id
if a__gen20[aa,1] <> .a__gen10[aa,1]
insert into lv_cto_u (c_e_id, c_oldcto, c_newcto, c_date);
values (r,h,p,q)
update lv_employee_u set lv_employee_u.e_cto = p where lv_employee_u.e_id = r
xxx = tableupdate(.t.,.t.,'lv_employee_u')
endif
endfor
yyy = tableupdate(.t.,.t.,'lv_cto_u')



THANKS
nick patel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform