Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Validation when leaving controls in web form
Message
De
09/09/2010 10:50:16
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
09/09/2010 10:28:15
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01479579
Message ID:
01480679
Vues:
46
Prior to dot net I was using Visual Fox Express for my framework. I have found with both VFE and MM I needed to learn more of the way the framework functioned in order to understand how I could use it for myself. This is a big task, but pays off huge in the end. I often wish there was a good reference book that showed solutions for different situations in MM and maybe I should try to do that myself.

I am not sure I understand your comment about this. " I think the part that surprised me was that all the values for the entire BO/Entity were not available in the business rule,"

Is the current entity the one you are using the rule for? The rule can be created to accept any values you pass into it. When the CheckRulesHook method calls the validation methods (at the save) the values are passed in from the current entity. Since you are calling it outside of the save, you could pass in any values you need for it to be used. The Rule can be used again from the save and called by the CheckRulesHook method by passing in those same values from the current entity. Am I understanding this correctly?
Tim


>I use Visual MaxFrame Professional. In a way that was a bad thing because I was spoilt by the attention to detail that Drew put in his documentation, giving loads of examples of how to achieve different things :) Maybe that's there in MM .NET, but I have great difficulty working my way through the help file. I think the part that surprised me was that all the values for the entire BO/Entity were not available in the business rule, so then I had to get the values I needed. And you also know of my frustration of having multiple BOs on a form all based on the same BO class which MM.NET seems to have an issue with. Funnily enough, I "grew up" on CodeBook and had used MM VFP for a while too, so I thought MM .NET would not have been too different to those.
>
>>What is your VFP framework? You are right in that architecture should be similar with n-tier. However there are specifics in the way the frameworks function. What you were trying to do is probably not wrong thinking so much as it may have been a bit of a cyclic issue because of the way this specific framework functions. I would suppose there was a way to do what you tried without the errors, but my thinking is to separate the data retrieval from the rule iteself. This fits better in the way the framework was designed.
>>Tim
>>
>>
>>>Maybe, but my VFP framework uses Business Objects and appears (on the surface at least) to be similar to mm.NET, so I didn't think my logic would have to be so different.
>>>
>>>
>>>>Hi Frank,
>>>>
>>>>VFP to dot net is a different way of thinking but I believe you are doing just fine. Keep going.
>>>>Tim
>>>>
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform