Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clistobjedit - Add parent, add children, no foreign key?
Message
De
29/10/2003 12:10:10
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
 
À
29/10/2003 12:05:39
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00844108
Message ID:
00844142
Vues:
21
Hey Jason,

Yes, here's the code:
LOCAL lcChildAlias, loParentObj, liFKValue, lcParentAlias

loParentObj = ThisForm.oCallingForm.RefBizObj.Get('vehiclemakes1')
lcParentAlias = loParentObj.GetAlias()

liFKValue = EVAL(lcParentAlias + '.vmid')
lcChildAlias = ThisForm.oCallingFormListObj.GetAlias()

REPLACE vmfk WITH liFKValue IN (lcChildAlias)

During debugging, I browse the parent view and all the added records show zero in the primary key field. Seems that they have NOT updated the parent table yet?

Thanks again!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform