Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child List for field xxx cannot be created for DataGridV
Message
De
08/07/2010 22:50:34
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
 
À
08/07/2010 19:48:47
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01471928
Message ID:
01471938
Vues:
35
As an additional tidbit, a symptom is that in
mmBusinessObject.SetCurrentDataSet(DataSet ds, string tableName, bool setRequiredFields, raiseEvents, int rowNumber)

ds has been initialized, but there are no tables in the dataset. If I skip over

this._currentDataSet = ds;

I don't get an error, and everything fills as expected. I haven't tracked down why it's not filling yet.




oSalesDocument.GetEmptyDataSet(); // Contains Invoices, InvoicesItems...

this.oInvoice = (Invoices)RegisterPrimaryBizObj(new Invoices());
oSalesDocument.SetInvoices(oInvoice); // Sets oSalesDocument.Invoices = oInvoices

this.oInvoicesItem = (InvoicesItems)RegisterBizObj(new InvoicesItems());
oSalesDocument.SetInvoicesItems(oInvoicesItem); // Sets oSalesDocument.InvoicesItems = oInvoicesItems, sets child relationship


SalesDocuments Biz Obj

public void SetInvoicesItems(InvoicesItems oII)
{
this.oInvoicesItem = oII;
ParentObj.RegisterChildBizObj(BizObj);
BizObj.AutoDeleteOnParentDeleted = true;
BizObj.AutoNewOnParentAdded = false;
BizObj.AutoEmptyOnParentAdded = true;
oII.SetForeignParentKeyField = "InvoiceFK";
}


oInvoice.NewRow() is what loads the data and causes the error
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform