>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