Hello Everyone,
I added a button/field to the part master that will search the
customer table and return the customer id. The code is below:
--------------------
Dim recSelected As Boolean
Dim whereClause As String = String.Empty
Dim dsCustomer As DataSet =
Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup
(oTrans, "CustomerAdapter", recSelected, True, whereClause)
If (recSelected) Then
txtCustID.Text = dsCustomer.Tables(0).Rows(0)("CustID")
oTrans.Update()
End If
--------------------
It works well except it doesn't tell the screen that the row has been
updated. When it is saved it will revert to the original custom
field value. If I enter a customer id directly in the custom field
it will save fine. It is only when the value is returned from this
code.
Can anyone point me in the right direction? Something tells me I am
missing a 'rowmod had been changed' line or something like that.
Thanks,
Ross
I added a button/field to the part master that will search the
customer table and return the customer id. The code is below:
--------------------
Dim recSelected As Boolean
Dim whereClause As String = String.Empty
Dim dsCustomer As DataSet =
Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup
(oTrans, "CustomerAdapter", recSelected, True, whereClause)
If (recSelected) Then
txtCustID.Text = dsCustomer.Tables(0).Rows(0)("CustID")
oTrans.Update()
End If
--------------------
It works well except it doesn't tell the screen that the row has been
updated. When it is saved it will revert to the original custom
field value. If I enter a customer id directly in the custom field
it will save fine. It is only when the value is returned from this
code.
Can anyone point me in the right direction? Something tells me I am
missing a 'rowmod had been changed' line or something like that.
Thanks,
Ross