Good Morning,
Does anyone have an example to update using the BO.Table.Update? I want to learn how to do this the proper way.
I have this code firing off in a pre-process method. My assemblies are added, but I’m trying to wrap my head around the syntax for erp.contracts.BO.QuoteAsm.Update
try
{
var hed = ttQuoteHed;
var dtl = ttQuoteDtl.FirstOrDefault();
string company = dtl.Company;
int quotenum = dtl.QuoteNum;
int quoteline = dtl.QuoteLine;
var asmtbl = (from asm in Db.QuoteAsm where asm.Company == company && asm.QuoteNum == quotenum && asm.QuoteLine == quoteline select asm);
if(asmtbl !=null)
{
foreach (var asmline in asmtbl)
{
asmline.Template = true;
}
}
Db.Validate();
}
catch (Exception ex)
{
this.PublishInfoMessage(ex.Message, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", ""); ;
}
//foreach (var line in dtl)