I have the following code for a BPM (Business Process Management) Workflow Designer in Pre-processing for Epicor ERP System.
using Ice.Memo;
foreach (var ttJobHead_xRow in (from ttJobHead_Row in ttJobHead where
ttJobHead_Row.RowMod == IceRow.ROWSTATE_UPDATED select ttJobHead_Row))
{
var Memo_Row = (from IM in Db.Ice.Memo where IM.Key1 == ttJobHead_xRow.PartNum select IM);
if (Memo_Row != null)
{
callContextBpmData.ShortChar04 = ttJobHead_xRow.MemoText.ToString();
callContextBpmData.ShortChar05 = ttJobHead_xRow.MemoDesc.ToString();
}
}
The goal of this code is to have a condition based on when a row in the table, JobHead, has been updated. And then to in a sense tie together two tables (ttJobHead and Memo). And later in the if statement, assign a shortchar to certain fields for later input into an email.
When compiling I am getting the following two errors:
Error CS1003: Syntax error, '(' expected [Update.Pre.New_Job_with_Par.cs(86,19)]
Error CS1026: ) expected [Update.Pre.New_Job_with_Par.cs(86,27)]
Whats going wrong? Also, is there a better way to accomplish this?