Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
StateChange Event and binding updates
Message
 
À
07/05/2007 17:42:46
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01223227
Message ID:
01224214
Vues:
12
Tim,

>Question:
>What is the proper mechanism for a form to be updated when a new entity is added?
>
>Detail:
>It appears the state change handler is not automatic in an MM business form. If I update controls in a form and then call: this.oMyBizObj.CallStateChange(mmBusinessState.Bind); what is supposed to happen? The business object raises the event, but apparently we need to register the form as a listener. What I would want to happen here is have all the controls on the form be updated to the current entity object.

You simply need to register the business object with the form's RegisterBizObj() or RegisterPrimaryBizObj() method then whenever the Bind StateChange occurs the controls will automatically update.

Best Regards,
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform