Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
1:M:M woes
Message
 
To
23/02/1999 14:09:05
John White
Micro-Oriented Software Techniques, Inc.
Phoenix, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00190578
Message ID:
00190600
Views:
12
>Doug,
>
>Wow! 5 minute turnaround (Thanks UT).
>
>Yes, PhaseObj1 references ProjectObj1, ReviewObj1 references PhaseObj1.
>
>No, there is no reference to the calling form. How would I fit that into the Parent BizObj name?
>
>...John
>
>>>Scenario:
>>>
>>>1. CBizObjMaintenance Form (ProjectForm) with a BizObj (ProjectObj1);
>>>2. Page 2 contains a CListObjEdit and a BizObj (PhaseObj1) that has ProjectObj1 as its Parent, refresh when Parent changes, calls CListObjEditForm (PhaseForm);
>>>3. PhaseForm contains CListObjEdit and a BizObj (ReviewObj1) that has PhaseObj1 as its Parent, refresh on first activate, calls CListObjEditForm (ReviewForm);
>>>
>>>ProjectForm works just as expected.
>>>
>>>When I open PhaseForm I get an error message about invalid Parent bizobj (PhaseObj1).
>>>
>>>How can I successfully do a 1:M:M implementation using MereMortals?
>>>
>>>...John
>>>
>>>PS: I've wrestled with this for about a week now trying different combinations.
>>
>>
>>What is the setting for your PhaseObj1.cParentBizObj?
>>
>>Do you have a reference to the calling form?

As Matt suggested, you can use the reference to the calling form.

From the parent form you would do something like:

DoForm("PhaseForm", ThisForm)

Of course, you will have to put code in the init of PhaseForm to accept the parameter. For example:

LPARAMETERS toCallingForm

This.oCallingForm = toCallingForm

Then, in your PhaseObj1.cParentBizObj property place the reference to the ProjectObj1 via the oCallingForm property.

HTH

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform