Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need best solution
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Need best solution
Divers
Thread ID:
00380427
Message ID:
00380427
Vues:
78
I guess I have spent too much time in Oracle lately! I need to do the following in a VFP database (Oracle pcode follows)
for when a user modifies a primary key in a sub table, the parent table needs it foriegn key fixed. I just seem to have gone brain dead on the VFP way to do it.
/* row level trigger of child table, fire after update */

create trigger fix_master on update of pkey row
new as new old as old
update master
set fkey = :new.pkey
where fkey = :old.pkey

I cannot figure out how to get old and new values. I have thought to do it in the form, but where is the isdirty flag, or equivilant?
Oh yeah, its not my design, or there would be no way a user could modify a primary key!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform