I am having a very difficult time with making a child bizobj work on the same form as a parent bizobj. (I realize that this is a strange concept to get, looking at all the previous threads on the subject) I have been reading the previous threads and I thought I had put the proper values in all the properties, but it is frozen. I have three tables involved with this form. The first table is a list of agreements, the second is a table of vendors/contractors, and the third is a linking table with the agreement cid and vendor cid. This is what I have done, so far. I subclassed iBizObj and created the two bizobj's I will need. I created the views, and the DE's. One view is just a copy of the agreement table, the other is a link of the link table and the vendor table, to be used for a grid, as the child. I subclassed txtboxes, labels, grid and command buttons, and the bizobjform. When I run the form with the agreement bizobj and txtboxes bound to agreement fields, I can see the records and can scroll through them, using the parent.next(). As soon as I even put the child bizobj on the form, I generate errors, such as: "must be a variable or array" "object is not found" in that order. I must be putting a wrong value(s) in one of the properties, can anyone give me the exact format that the child and parent propeties that would be required of such a object?
I have the following in the properties: Parent: bizobj calias : v_agreements ckeyfield : cid cregistrylabel : ncagreementsbizobj nchildcount : 1 DE cdataenvironment : ncagreebizobjenvironment cregistrylabel : ncagreementsbizobjdeloader
Child : ckeyfield : as_transno cparentbizobj : ncagreeementsbizobj1 cparentkeyfield : cid cregistrylabel : ncagreesubgridbizobj cviewparamname : vp_agreements.cid DE cdataenvironment : agreesubgridenvironment cregistrylabel : agreesubgriddeloader
I am hoping to eventually put the grid on a pageframe and use a command button to launch a form to edit the tables/views, but for now I would be happy to be able to scroll through the records with both of the bizobj's on the same form. The previous threads make it seem so simple, I must be missing something. I am using the CB 6.0 version on VFP 6.0. Devman mdevlin AT ajdebruin .DO.T com
©2000 Mike Devlin |