Just got this back from support. In case anyone else ever needs this I wanted to post it up.
___________________________________________________________
SCR 82779 reports multiple issues with adding a Child table via the Wizard, one issue being the following:
PROBLEM DESCRIPTION:
In Customer Maintenance using an EpiUltraGrid with the Customization Wizards to Add User Defined Table as Child will cause an Unhandled Except when the Child row is deleted using the large red X.
Error: Object reference not set to an instance of an object.
Error Details below:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Epicor.Mfg.UI.App.CustomerEntry.Transaction.Delete()
at Epicor.Mfg.UI.App.CustomerEntry.CustomerEntryForm.OnClickDelete()
at Epicor.Mfg.UI.FrameWork.EpiBaseForm.handleToolClick(String tKey, ToolClickEventArgs ea)
at Epicor.Mfg.UI.FrameWork.EpiBaseForm.baseToolClickHandler(Object sender, ToolClickEventArgs ea)
at Infragistics.Win.UltraWinToolbars.ToolClickEventHandler.Invoke(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Development has not yet assigned a Target SP.
The Change Request for the Delete issue contains the following work around:
step 1:
<Tools><Wizards> Reference Adapater/BLAssebmlies Wizard Select Customer Adapter and click "Finish"
Step 2:
Declare a class level varialbe
private static DataTable _dtUD04;
Step 3:
Clean up DataTable object in DestroyCustomCode()
_dtUD04.Clear();
_dtUD04 = null;
Step 4:
Initialize _udUD04 in InitializeUD04Adapter() An add the DataTable to the Adapter DataSet
_dtUD04 = _edvUD04.dataView.Table.Clone();
((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Add(_dtUD04);
Step 5:
Add dummy UD04 Table to Adapters DataSet in DeleteUD04Record() method
if (!((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Contains(_dtUD04.TableName))
{
((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Add(_dtUD04);
}
Step 6:
In the Form Event Wizard Tab add a "BeforeAdapterMethod" event handler and add the following code:
if (((PlantAdapter)oTrans_customerAdapter).CustomerData.Tables.Contains(_dtUD04.TableName))
{
((PlantAdapter)oTrans_customerAdapter).CustomerData.Tables.Remove(_dtUD04 );
}
While Development's system list the following Work Around:
if the customization is changed to add the view like the following.,. there is no exception...
if ((oTrans.EpiDataViews.ContainsKey("AutoAttachUD04View") == false))
{
oTrans.Add("AutoAttachUD04View", _edvUD04);
___________________________________________________________
SCR 82779 reports multiple issues with adding a Child table via the Wizard, one issue being the following:
PROBLEM DESCRIPTION:
In Customer Maintenance using an EpiUltraGrid with the Customization Wizards to Add User Defined Table as Child will cause an Unhandled Except when the Child row is deleted using the large red X.
Error: Object reference not set to an instance of an object.
Error Details below:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Epicor.Mfg.UI.App.CustomerEntry.Transaction.Delete()
at Epicor.Mfg.UI.App.CustomerEntry.CustomerEntryForm.OnClickDelete()
at Epicor.Mfg.UI.FrameWork.EpiBaseForm.handleToolClick(String tKey, ToolClickEventArgs ea)
at Epicor.Mfg.UI.FrameWork.EpiBaseForm.baseToolClickHandler(Object sender, ToolClickEventArgs ea)
at Infragistics.Win.UltraWinToolbars.ToolClickEventHandler.Invoke(Object sender, ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Development has not yet assigned a Target SP.
The Change Request for the Delete issue contains the following work around:
step 1:
<Tools><Wizards> Reference Adapater/BLAssebmlies Wizard Select Customer Adapter and click "Finish"
Step 2:
Declare a class level varialbe
private static DataTable _dtUD04;
Step 3:
Clean up DataTable object in DestroyCustomCode()
_dtUD04.Clear();
_dtUD04 = null;
Step 4:
Initialize _udUD04 in InitializeUD04Adapter() An add the DataTable to the Adapter DataSet
_dtUD04 = _edvUD04.dataView.Table.Clone();
((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Add(_dtUD04);
Step 5:
Add dummy UD04 Table to Adapters DataSet in DeleteUD04Record() method
if (!((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Contains(_dtUD04.TableName))
{
((CustomerAdapter)oTrans_customerAdapter).CustomerData.Tables.Add(_dtUD04);
}
Step 6:
In the Form Event Wizard Tab add a "BeforeAdapterMethod" event handler and add the following code:
if (((PlantAdapter)oTrans_customerAdapter).CustomerData.Tables.Contains(_dtUD04.TableName))
{
((PlantAdapter)oTrans_customerAdapter).CustomerData.Tables.Remove(_dtUD04 );
}
While Development's system list the following Work Around:
if the customization is changed to add the view like the following.,. there is no exception...
if ((oTrans.EpiDataViews.ContainsKey("AutoAttachUD04View") == false))
{
oTrans.Add("AutoAttachUD04View", _edvUD04);