So I normally use Erp.Tablesets.PartMtlRow in VisualStudio externally with no problems.
When trying to use it within E10 I get this error:
Unable to cast object of type ‘PartMtlRow’ to type ‘Erp.Tablesets.PartMtlRow’.
Ok, so where else is PartMtlRow defined?
foreach (PartMtlRow row in adapterBOM.BomSearchData.PartMtl.Rows)
{
if(row.PartNum == PartNum)
{
PartInfo thePart = new PartInfo();
thePart.PartNum = PartNum;
thePart.MtlSeq = row.MtlSeq;
thePart.UOM = row.UOMCode;
}
}
``