Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ver. 1.1 NewRow() changes?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00866777
Message ID:
00866821
Vues:
17
>>In a former app I had allot of these types of BizObject calls:
>>
>>public DataSet GetEmptyDataSetName()
>>{
>> this.NewRow();
>> return this.GetCurrentDataSet();
>>}
>>
>>Seems that this no longer works, but compiles? In the whats new doc it states that this is now a datarow function instead of a dataset.
>>
>>Any idea on how to get a DataSet with a single blank row now?
>>
>>TIA
>Stephen,
>
>You may want to try:
>
>this.SetCurrentDataSet(this.GetEmptyDataSet());
>this.NewRow();
>
>Hope it helps,

It's close, Now what do I return? When I look for a dataset with the new row added I can't find one? when I try :
public DataSet GetEmptyApplication()
{
this.SetCurrentDataSet(this.GetEmptyDataSet());
this.NewRow();
return this.GetCurrentDataSet();
}

via this call:
// Get a DataSet containing Empty Model
DataSet dsGetModel = this.oIndxModel.GetEmptyApplication();


I get this error on the page:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.


Which I translate to mean that I didn't get a dataset back.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform