Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining parent object programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00696552
Message ID:
00696582
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform