Last active
April 2, 2024 02:23
-
-
Save strepicor/0ba250a2409f53fb67f68f5f3b45b30f to your computer and use it in GitHub Desktop.
Epicor Customization - Update fields using an adaptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JobEntryAdapter adapterJobEntry = new JobEntryAdapter(this.oTrans); | |
adapterJobEntry.BOConnect(); | |
DataSet dsJobDetails = adapterJobEntry.GetData(jobNum); | |
DataRow dr = adapterJobEntry.JobEntryData.JobHead.Rows[0]; | |
dr.BeginEdit(); | |
dr["FieldName_c"] = newValue; | |
dr.EndEdit(); | |
if (adapterJobEntry.Update()) | |
{ | |
EpiMessageBox.Show("Successfully updated"); | |
} | |
adapterJobEntry.Dispose(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment