I was trying to add a custom column when calling Labor.GetRows post processing method directive. Then code below compiles and I get no error when the method is called, but the column is not in the resulting data. Is there a way to achieve what I am attempting here, or is this never going to work?
result.LaborDtl.Columns.Add(Ice.IceColumn.Create("ProjectDesc", typeof(string)));
foreach (var row in result.LaborDtl)
{
var jobHead = Db.JobHead.FirstOrDefault(r => r.Company == row.Company && r.JobNum == row.JobNum);
if (jobHead != null)
{
var project = Db.Project.FirstOrDefault(r => r.Company == jobHead.Company && r.ProjectID == jobHead.ProjectID);
if (project != null)
{
row["ProjectDesc"] = project.Description;
}
}
}