>I set the CLISTOBJ1.lEnabled prperty of CListObjEdit's Property to .F.
>
>Then I droped my custom object on the form and named it ProgRoutinObj
>In the CLISTOBJEdit's(which is named lesProgroutin) postinitHook property I added
>This.ChangeBizObj(This.Parent.ProgRoutinObj)
>
>In the ProgRoutinObj business objects OnBizObjEmpty and PostRequeryHook methods I added
> This.Parent.lseProgRoutin.SetButtonEnabledStatus()
>and in its PostInitHook property has the following code
> This.AddViewParameter('vp_Programers_IPID', 'v_programers.ipid')
>
>where I want it to pick the parameter value from the v_Programers view and vp_programers_ipid is the view paramter which is used to filter the records in v_progroutin view
>
>the lAutoPrimaryBiz setting of the proRoutinObj is .F.
>
>Yes I am selecting the page on which the object is lying. It doesnot allow me to open the Page at all and give me the error message. I am using the toolbar to open the entire project which consist of a form with four tabs. I am not using a tool bar to open this particular tab.
>
>Thanks for your concern
>Bharat
What is the parent BizObj for ProgRoutinObj? Is this happening every time you select page 3, or only when you've added a new record on page 1 (I'm assuming the parent obj is on page 1)? What is the lNewChildOnNewParent for ProgRoutinObj? If it's .T., a new child is created automatically created one in the child... then, since you've got the requery when parent changes, it may be trying to requery with the new and unchanged information in the buffer.
Your problem is twofold: How is the record being added to ProgRoutinObj? and... What is causing the record to change in the Parent Obj?
---J