Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I access the entity object from a textbox event?
Message
 
To
27/06/2008 19:28:37
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01327405
Message ID:
01328029
Views:
9
>I have an event handler on a form that handles the validating event for a textbox on that form. From within that event handler method I need to access the entity object property that the textbox is bound to. Can somebody please help me with some code that would allow me to do that.

You can get a reference to the business object specified in the BindingSource property of the control, then access that business object’s Entity object. For example:
mmBusinessObject BizObj = (mmBusinessObject)mmAppDesktop.FormMgr.GetControlBizObj(this);
For details, check out the MM .NET Dev Guide “Getting References to Registered Business Objects”.

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
Reply
Map
View

Click here to load this message in the networking platform