Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining parent object programmatically
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00696552
Message ID:
00696582
Views:
10
>I currently have a Treeview display on the left side of my form which drives the query result of my business objects on the right side of the form. I defined my business objects on the right side as a child of my bus object in the Treeview. So everytime I highlight a node, the bus objects on the right are requeried.
>
>However, I am now thinking of adding another Treeview display beside my current Treeview. But I don't know if it is possible to define the parent bus object in the program. It is like there is a command button that a user can click to determine which one of the 2 Treeviews will be the parent.
>
>Thanks a lot for any help that you can give.
>
>Have a good day.
>
>Nerissa

You can change the current parent object by calling the form's SetPrimaryBizObj(). You can also register child bizobjs using RegisterChildBizObj() method of the bizobjs. Take a look at the "Manually Creating Temporary Business Object Relationships" in the manual for more info. It's in the "Business Objects on Forms" section.

HTH
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform