Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clistobjedit - Add parent, add children, no foreign key?
Message
From
29/10/2003 12:10:10
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
 
 
To
29/10/2003 12:05:39
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00844108
Message ID:
00844142
Views:
20
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform