I'm running the code below to update a field in UD01. However when it gets to the oTrans.Refresh() call it throws this error. Maybe my call to refresh is not in the right spot? I'll keep playing with it. Thanks.
Error Detail
============
is neither a DataColumn nor a DataRelation for table Results.
Stack Trace
===========
at System.Data.DataRowView.get_Item(String property)
at Epicor.Mfg.UI.FrameWork.EpiMultiViewTransaction.Refresh()
'Declare and create an instance of the adapter.
Dim adapterUD01 As UD01Adapter = New UD01Adapter(Me.oTrans)
adapterUD01.BOConnect()
'call adapter method
Dim result As Boolean = adapterUD01.GetByID(key1, key2, key3, key4, key5)
Dim ud01DS As UD01DataSet = adapterUD01.UD01Data
Dim dt As New DataTable
dt = ud01DS.Tables("UD01")
dt.Rows(0)("CheckBox01") = true
Dim res As Boolean = adapterUD01.Update()
adapterUD01.Dispose()
oTrans.Update()
oTrans.Refresh()
Error Detail
============
is neither a DataColumn nor a DataRelation for table Results.
Stack Trace
===========
at System.Data.DataRowView.get_Item(String property)
at Epicor.Mfg.UI.FrameWork.EpiMultiViewTransaction.Refresh()
'Declare and create an instance of the adapter.
Dim adapterUD01 As UD01Adapter = New UD01Adapter(Me.oTrans)
adapterUD01.BOConnect()
'call adapter method
Dim result As Boolean = adapterUD01.GetByID(key1, key2, key3, key4, key5)
Dim ud01DS As UD01DataSet = adapterUD01.UD01Data
Dim dt As New DataTable
dt = ud01DS.Tables("UD01")
dt.Rows(0)("CheckBox01") = true
Dim res As Boolean = adapterUD01.Update()
adapterUD01.Dispose()
oTrans.Update()
oTrans.Refresh()