Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StateChange Event and binding updates
Message
 
To
07/05/2007 17:42:46
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01223227
Message ID:
01224214
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform