Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindback and checkrules without attempting to save
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01239479
Message ID:
01241189
Views:
34
So if I wanted to have the child objects bind back and save their records, I should register a statechange handler that executes a Page.Save(childobj, ds, tab) for each child object?

>Govinda,
>
>>I have a webform where I would like to validate the fields, if validation passed, attempt to run a separate process, and if that process completes successfully, then save the form data a new record. To my understanding, the only way to get that nice bindback functionality is by is by calling the Page.Save() method. Is there another way?
>>
>>I know I can call Obj.Rules.CheckRules(), but it's the binding back that I'm having a problem with. Should I just give up trying to use the Page.BindBack() and go back to manually copying the field values to the dataset?
>
>If you need to run a separate process after business rules have been successfully validated, you can register the process with the business object's StateChange event and check for mmBusinessState.Saving in the event handler method. If the state passed in the mmBusinessStateEventArgs parameter is set to mmBusinessState.Saving, then you know the business rules have passed successfully.
>
>Best Regards,
Govinda Berrio
GKG Inc.
Providence, RI
http://www.gkginc.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform