General information
Category:
The Mere Mortals Framework
Allen,
If the form is a cListObjEditForm, use the full calling line:
llRetVal = DoForm(This.Parent.cEditForm, .T.,ThisForm,This.Parent.oBizObj)
Where:
This.Parent.cListObjEditForm = The form class name
.T. = Is this form in Add mode
ThisForm = Calling form reference
ThisForm.Parent.oBizObj = Calling form primary business object reference
Note: If you are using another business object in your cListObjEditForm that needs to be related to your calling form's primary business object, you will need to call the Calling form primary business object.RegisterChildBizObj method from the cListObjEditForm.Init method and UnRegisterChildBizObj from the cListObjEditForm.Destroy method.
HTH
Rex
>Hello Rex
>I have done as you suggested and it just about works :-) The record is added to the file ok, but after clicking the OK button I get an error:
>
>error# 1925
>Message: Unknown member OCALLINGFORMLISTOBJ.
>LINE 68
>CODE; lcSelect = CREATEOBJECT('CSelect',ThidForm.oCallingFormListObj.GetAlias())
>
>method: click
>Object: propdetail.cmdok
>
>I used the code similar to that used in the cmdadd.Click from the clistobjedit class in the cmdAdd button on my form:
>
>llRetVal = DoForm('PropDetail',This.Parent.Bizobj)
>
>I think this is where the problem is as it is obviously not stoing the calling forms bizobj. I am confused as the the correct number of arguments to send to the called form and what the information should be?
>Allan Godney
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only