Hi all,
I create an extension of SalesTable form and add a display methode stored in SalesLine table on the form extension. The SalesTable form have had extension in several modules. The SalesLine table also have had extension, but no extension that stored in a class (only metadata extension like new field).
the display methode is coded as follows:
[SysClientCacheDataMethodAttribute(true)]
public display ImageRes drawingDifference(SalesLine _salesLine)
{
#resAppl
PurchLine icLine;
SalesTable salesTable = _salesLine.salesTable();
if (salesTable.InterCompanyCompanyId)
{
changecompany(salesTable.InterCompanyCompanyId)
{
icLine = PurchLine::findInventTransId(_salesLine.InterCompanyInventTransId);
}
if ((icLine.drawingNumberId != _salesLine.DrawingNumberId) || (icLine.DrawingIndexId != _salesLine.DrawingIndexId))
{
return #imageWarning;
}
}
return 0;
}
On runtime I get the:
Error executing code: SalesLineDbt_Extension object does not have method 'drawingDifference'.
In control properties the display methode could be selected...
Also the changeCompany() should not be the problem because the same error appears if code only return zero...
So what is wrong? Do I have to reference all packages/modules where form and table extension exists to "myModule"?