I am looking to add a menu path to Report Quantity in the regular Epicor client. Seems straightforward but when I wire it up, it throws some errors when I launch it. What in tarnation is so different from launching in MES (where it launches just fine)?
Exception caught in: System.Data
Error Detail
============
Message: Index 0 is either negative or above rows count.
Program: System.Data.dll
Method: GetRowClient Stack Trace
==================
at System.Data.DataView.GetRow(Int32 index)
at Erp.UI.App.ReportQtyEntry.RQForm.OnFormLoaded()
at Ice.Lib.Framework.EpiBaseForm.formLoaded()
And then this one follows right behind:
Exception caught in: System.Data
Error Detail
============
Message: Index -1 is either negative or above rows count.
Program: System.Data.dll
Method: GetRowClient Stack Trace
==================
at System.Data.DataView.GetRow(Int32 index)
at Erp.UI.App.ReportQtyEntry.RQTransaction.BackflushMaterialOnLastJobOperationSearch()
at Erp.UI.App.ReportQtyEntry.RQTransaction.Transaction_EpiViewChanged(EpiViewChangedArgs args)
at Ice.Lib.Framework.EpiTransaction.onViewChanged(EpiDataView CurrentView, EpiDataView LastView)
at Ice.Lib.Framework.EpiTransaction.set_LastView(EpiDataView value)
at Ice.Lib.Framework.EpiTextBox.EpiTextBox_Enter(Object sender, EventArgs ea)
And then this last one:
Application Error
Exception caught in: System.Data
Error Detail
============
Message: Index -1 is either negative or above rows count.
Program: System.Data.dll
Method: GetRowClient Stack Trace
==================
at System.Data.DataView.GetRow(Int32 index)
at Erp.UI.App.ReportQtyEntry.RQTransaction.BackflushMaterialOnLastJobOperationSearch()
at Erp.UI.App.ReportQtyEntry.RQTransaction.Transaction_EpiViewChanged(EpiViewChangedArgs args)
at Ice.Lib.Framework.EpiTransaction.onViewChanged(EpiDataView CurrentView, EpiDataView LastView)
at Ice.Lib.Framework.EpiTransaction.set_LastView(EpiDataView value)
at Ice.Lib.Framework.EpiButton.setLastViewWhenActivated()