Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to make a generic process using biz objects
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00924336
Message ID:
00925861
Views:
11
Shawn,

>hopefully it will look like the following :
>
>
>IF using PrimaryBizObject = .t.
>string cTableName = this.primaryBizObject.TableName;
>this.BindingContext[this.PrimaryBizObject.GetCurrentDataSet(),cTableName].Position =
>	this.PrimaryBizObject.GetCurrentDataSet().Tables[cTableName].Rows.Count -1;
>
It may be easiest to create a subclass of mmButtonBehavior<\b>. You can either set the BindingSource property to a specific business object, or, if you leave this property blank, the button's GetBizObj() method automatically tries to get a reference to the parent form's primary business object. You can call this method from within one of your subclassed button's methods. For example:
mmBusinessObject BizObj = this.GetBizObj();
if (BizObj != null)
{
   string MyTableName = BizObj.TableName;
}
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