Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating dataset before save with CallStateChanged?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01568085
Message ID:
01568385
Vues:
43
Brian,

>I found why calling the CallStateChange was not populating the dataset / row with the values from the webform.
>
>In order to call the CallStateChange method I needed to set the business objects current dataset. So I made a call to SetCurrentDataset(myds) myds being a dataset I rehydrated from the snapshot I saved in the session before the edit. That call was causing the binding strategy to change the value of the control. Once I changed the SetCurrentDataset to include a parameter to set events to false everything worked.

Right, having the current dataset present in the business object is key.

Best Regards,
Kevin
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform