Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help in calling a method in post init?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00225047
Message ID:
00225400
Vues:
19
>
>local oOtherBizObj
>
>oOtherBizObj = thisform.RefBizObj.Get('MyBizObj')
>
>if vartype(oOtherBizObj) == "O"
>   oOtherBizObj.MethodIWantToCall()
>endif
>
>return .t.
>
>
>In the get, you can use the ClassName or the Instance Name... so, if you use the same bizobj class on the form more than once, make sure you use the InstanceName... which will be what shows in the Properties Dialog under Name when you are editing your form class.

Well I tried the this.parent. ... for 6 revs of parent, to no avail. Then I added your code to the same place that I was doing the parent routine. Still no luck.

Maybe I think of the problem one way and I explain it differently ??

I am in the builder for the data environment on the primary & only Bizobject for this form. Because it is erupting in to an error at this time I see the current Object is wo_ticket_env. So this.method() will not work because that method is in wo_ticket_biz. I question if it is instanciated at this time? Thus why a this.parent.parent.... could not find it?

But when I go to the FORMS init and call: Thisform.wo_ticket_biz1.gen_master2_config it works.

I think that it's not instanciaed when the data environment post init is firing, yet how did it know how to fire?

Another thing that is baffling me? How do I get any non modal form to stick and not terminate after showing? I have been using modal forms for the longest time because I could not get this functionality to work. Using cBizObjMaintenanceForm.

Thanks again for your help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform