Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to make a generic process using biz objects
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Trying to make a generic process using biz objects
Divers
Thread ID:
00924336
Message ID:
00924336
Vues:
51
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform