>>>I am wanting to call my Business Rules when I leave a control on a web form. I've found an example in the help for winforms, is there a similar example for web forms as I am so far not having success in adapting the sample.
>>Have you tried executing the form's Save method? I'm not using web forms but it seems like that might accomplish what you need.
>
>Hi Linda,
>
>I don't want to save the data at this point in time. I just want to do the validation at the point where the user enters data in a particular field as well as at the point where the data gets saved.
I haven't tried using the rules except right before a save but what you want seems like it ought to work. I would think you would need to use oBizObj.Rules.CustomRule(param1, param2 ...) to call a specific rule or oBizObj.Rules.CheckRules(.....) to check all the rules. You probably want to use the Validated() or Leave() event because the data is not yet bound in the Validating() event. Seems like that's what the web form instructions would have suggested as well, though. If I get a chance to try it, I'll let you know.
Linda Harmes
HiBit Technologies, Inc.