Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to the business object from businessrule objec
Message
From
08/03/2004 04:29:47
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
 
 
To
03/03/2004 12:11:45
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00882006
Message ID:
00883988
Views:
12
Hi J,

You did not misunderstand at all, this was exactly what I was looking for. Thanks a lot!

Regards

-Filip

>Maybe I'm misunderstanding, but I thought you were looking for a way, from inside the rules object, to access the related business object?
>
>If so, HostObject stores a reference to the object that instantiated the mmBusinessRule object (look at mmBusinessRule's constructor). This object implements the ImmBusinessRuleHost interface, and is of either mmBusinessObject or mmBusinessEvent type.
>
>In your case, when your business object instantiates its rules object, it can then access the HostObject field to get a reference to the business object:
>
>//This code would be in your rules class.
>YourBizObj YBO = this.HostObject;
>
>//You should have intellisense now...
>YBO.YourCustomMethod();
>
>
>Hope that clears the issue up a little,
>---J
Previous
Reply
Map
View

Click here to load this message in the networking platform