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
Title:
Trying to make a generic process using biz objects
Miscellaneous
Thread ID:
00924336
Message ID:
00924336
Views:
52
Hi everyone,
I want to make this routine more generic
string cTableName = this.oCompany.TableName;
this.BindingContext[this.oCompany.GetCurrentDataSet(),cTableName].Position =
	this.oCompany.GetCurrentDataSet().Tables[cTableName].Rows.Count -1;
I want to put this code on one of my subclassed buttons, i want it to check to see if a primary biz object is registered.
If it is registered get its tablename.

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;
I am trying to get rid of the reference to the oCompany item.

Thanks
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform