Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetCurrentDataSet()
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00869181
Message ID:
00870586
Vues:
17
I got it working.

Just one Q. I use to put allot of the WORK with data in the BizObject. In the latest version I now can only do some of that work in the GUI, which is confusing.

Case:
GUI has a save button. After the current DS is saved {normal} I needed to create an entry in another table. I use to have the BizObj responsible for adding a row or more and updating as needed per transaction and then passing the ds back via savedataset().

__Stephen


>Stephen,
>
>>Kevin, I think I am. This is all code in the BIZ OBJECT and not in the GUI.
>>//Set string of values to push back.
>>string lcin = "'"+lcproduct+"' , '" +lcselect+"' , '"+ lcappl +"' , '"+lcposition+"' ,"+lnline.ToString();
>>
>>this.FillDataSet(this.GetCurrentDataSet(),"insert into newnotes (no_product, no_select, no_appl, no_position, no_line) values ("+lcin+")","newnote", this.DatabaseKey,CommandType.Text,(IDbDataParameter[])null);
>>
>>return this.GetDataSet("SELECT * from newnotes where no_select= '" + lcselect + "' and no_position = '"+lcposition+"' order by no_line");
>
>I see you're calling this.GetCurrentDataSet() in the call to this.FillDataSet(). If you haven't retrieved a DataSet yet, this.GetCurrentDataSet() will return null.
>
>Regards,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform