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 19:48:47
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
08/07/2010 18:01:33
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01471928
Message ID:
01471930
Vues:
33
I would like to see your code to register these as well as the code that calls for data and in what order. I will try to duplicate your issue.
Thanks
Tim

>I recently upgraded to MM 3.6. This was working before, and I'm at a loss as to what I'm doing to cause this issue.
>
>I have two Biz Objects: Invoices, InvoicesItems
>
>InvoicesItems is a child of Invoices and is displayed in a DataGridView.
>
>When InvoicesItems is registered as a child of Invoices, when I call Invoices.NewRow(), I get an exception: "Child list for field InvoicesItems cannot be created."
>
>After the exception, oInvoicesItem.DataSet.Tables.Count = 0 (it was 1 before the exception).
>
>If I do not set InvoicesItems as a child, the databinding works and life is good.
>
>Any suggestions will be GREATLY appreciated.
>
>Stack Trace:
> at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember)
> at System.Windows.Forms.DataGridView.DataGridViewDataConnection.SetDataConnection(Object dataSource, String dataMember)
> at System.Windows.Forms.DataGridView.set_DataMember(String value)
> at OakLeaf.MM.Main.Windows.Forms.mmBindingStrategyDataGrid.BindData(ImmBindingDataGrid mmGrid, DataSet ds, String tableName, mmBusinessObject bizObj)
> at OakLeaf.MM.Main.Windows.Forms.mmBindingStrategyDataGrid.BindData(ImmBindingDataGrid mmGrid, mmBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Windows.Forms.mmBindingStrategyDataGrid.BindData(ImmBindingDataGrid mmGrid, mmBaseBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Windows.Forms.mmDataGridView.OnBindData(mmBaseBusinessObject bindingSource, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Windows.Forms.mmUIHelper.StateChangeHandlerGrid(Control control, mmBaseBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Windows.Forms.mmDataGridView.StateChangeHandler(mmBaseBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Business.mmBusinessObject.OnStateChange(mmBusinessState bizState, String tableName, Object primaryKeyValue, Object[] primaryKeyValues)
> at OakLeaf.MM.Main.Business.mmBusinessObject.CallStateChange(mmBusinessState bizState, String tableName, DataRow dr)
> at OakLeaf.MM.Main.Business.mmBusinessObject.CallStateChange(mmBusinessState bizState, String tableName)
> at OakLeaf.MM.Main.Business.mmBusinessObject.SetCurrentDataSet(DataSet ds, String tableName, Boolean setRequiredFields, Boolean raiseEvents, Int32 rowNumber)
> at OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.SetCurrentDataSet(DataSet ds, String tableName, Boolean setRequiredFields, Boolean raiseEvents, Int32 rowNumber)
> at OakLeaf.MM.Main.Business.mmBusinessObject.SetCurrentDataSet(DataSet ds, String tableName, Boolean setRequiredFields, Boolean raiseEvents)
> at OakLeaf.MM.Main.Business.mmBusinessObject.SetCurrentDataSet(DataSet ds, String tableName, Boolean setRequiredFields)
> at OakLeaf.MM.Main.Business.mmBusinessObject.SetCurrentDataSet(DataSet ds, String tableName)
> at OakLeaf.MM.Main.Business.mmBusinessObject.GetEmptyDataSet(DataSet ds, String tableName, String databaseKey)
> at OakLeaf.MM.Main.Business.mmBusinessObjectHelperDS.GetEmptyEntityList[EntityType](String databaseKey, mmBusinessObjectGeneric`1 businessObject)
> at OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.GetEmptyEntityList(String databaseKey)
> at OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.GetEmptyEntityList()
> at OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.StateChangeHandler(mmBaseBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Business.mmBusinessStateChangeDelegate.Invoke(mmBaseBusinessObject bizObj, mmBusinessStateChangeEventArgs e)
> at OakLeaf.MM.Main.Business.mmBusinessObject.OnStateChange(mmBusinessState bizState, String tableName, Object primaryKeyValue, Object[] primaryKeyValues)
> at OakLeaf.MM.Main.Business.mmBusinessObject.CallStateChange(mmBusinessState bizState, String tableName, DataRow dr)
> at OakLeaf.MM.Main.Business.mmBusinessObject.NewRow(DataSet ds, String tableName, Object defaultValues)
> at OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.NewRow(DataSet ds, String tableName, Object defaultValues)
> at OakLeaf.MM.Main.Business.mmBusinessObject.NewRow(DataSet ds, String tableName)
> at OakLeaf.MM.Main.Business.mmBusinessObject.NewRow(String tableName)
> at OakLeaf.MM.Main.Business.mmBusinessObject.NewRow()
> at ATLib.Controls.ambitNavigator.OnNewButtonPressed(Object sender) in C:\Ambit\PointOfSale\ATPOSLib\ambitNavigator.cs:line 830
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform