Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindback and checkrules without attempting to save
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01239479
Message ID:
01241189
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform