Not until the parent's Save() will the PK make its way back to the table. That's why you would want use the parent's view and not the table, but you're doing that with the GetAlias() call. The view should have its PK value set from NewID() during the BizObj.New()
I think that's the issue here. You're not getting the parent's PK value populated in the view.
Check your parent BizObj's data environment. Make sure the lAutoGeneratePrimaryKey flag is set .T. (should be .T. by default)
You can also try stepping through BizObj.OnNew() -- that's where the PK is set.
Hope that helps,
---J
>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!