>I added this code to the child objet:
>
> protected override bool HookPreNewEntity()
> {
> if (this.ParentBizObj != null) return base.HookPreNewEntity();
> if (this.ParentBizObj.GetRowCount() == 0) return false;
> }
>
>But it doesn´t prevent to avoid new records if the parent entity is a new entity and is not saved yet.
>
>I need a kind of RequeryChildOnParentNavigate method.
>
>Thanks.
In your child business object you could override the HookParentNavigated method. Check the jump start for Creating business objects Step 8 "Enhancing the OrderDetail Business Object" item #4.
Tim
Timothy Bryan