I am adding an extension class to a standard class. I am trying to add more cases to a switch case statement in a existing method of a calss. How can i do this in D365?
protected void validateSourceLine(Common _sourceLine)
{
(_sourceLine.TableId)
{
case tableNum(SalesLine) :
case tableNum(SalesQuotationLine) :
case tableNum(SalesBasketLine) :
case tableNum(SalesQuotationBasketLine) :
case tableNum(PurchLine) :
case tableNum(ProdTable) :
//new cases →
case tableNum(BOMVersion) :
case tableNum(ForecastSales) :
// new cases ←
break;
default:
throw error(Error::wrongUseOfFunction(funcName()));
}
}