Skip to content

Instantly share code, notes, and snippets.

@strepicor
Last active April 2, 2024 02:23
Show Gist options
  • Save strepicor/0ba250a2409f53fb67f68f5f3b45b30f to your computer and use it in GitHub Desktop.
Save strepicor/0ba250a2409f53fb67f68f5f3b45b30f to your computer and use it in GitHub Desktop.
Epicor Customization - Update fields using an adaptor
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