Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HostObject
Message
 
To
28/07/2004 11:39:44
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00928702
Message ID:
00928810
Views:
31
Bonnie you never have bad advice!

-->Shawn

>I'm sure you saw Jason's reply ... my bad advice is because I don't know the MM framework. I was initially going to suggest what Jason says, but I was thinking that the Interface probably had all the methods you needed. I guess not. Sorry.
>
>Jason's suggestion should work for you.
>
>~~Bonnie
>
>
>>thanks Bonnies Tried that but it still complains
>>'OakLeaf.MM.Main.Business.ImmBusinessRuleHost' does not contain a definition for 'CheckIfCompanyUserIdExists'
>>
>>thanks for the try though.
>>I really appreciate your help.
>>
>>-->Shawn
>>
>>>Shawn,
>>>
>>>I see one thing that jumps out at me (although I don't know MM). Your oCompany should
>>>not be an object. Try this:
>>>
>>>		public ImmBusinessRuleHost oCompany;
>>>
>>>		public CompanyRules(ImmBusinessRuleHost hostObject) : base(hostObject)
>>>		{
>>>			this.oCompany = hostObject;
>>>		}
>>>
>>>
>>>~~Bonnie
>>>
>>>
>>>
>>>>I built a business object and i need access to a query in the busines object, from the rules validation, i think this is the right way, because i can use the query for other things as part of the business object later.
>>>>
>>>>The issue is how do i get the compiler not to complain when trying to use the business object via the HostObject parameter?
>>>>
>>>>I looked at the help and when i do the same it doesn't give me anything in intellisense, or if i had type it, it then complains on the compile that
>>>>'object' does not contain a definition for 'CheckIfCompanyUserIdExists'
>>>>
>>>>I have set it up this way so i have access to it in all the code below.
>>>>
>>>>		//public DataSet ds;
>>>>		public object oCompany;
>>>>
>>>>		public CompanyRules(ImmBusinessRuleHost hostObject) : base(hostObject)
>>>>		{
>>>>//Kevin's help file shows using the host object in upper case like i have typed it.
>>>>			this.oCompany = this.HostObject;
>>>>//  i have also tried it this way and the compiler still errors with the above error message
>>>>//			this.oCompany = hostObject;
>>>>		}
>>>>
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform