Hi,
Here I'm facing difficulty in adding the table display method in Data Entity.
I'm trying to add warrantyDateToVend() method from EntAssetObjectTable into EntAssetMaintenanceAssetEntity. So, I have created an unmapped date field and created "WarrantyDateToVend" field and I have created an extension class for PostLoad() to write this same display method.
public void postLoad()
{
next postLoad();
if(this.WarrantyVend && this.WarrantyDateFromVend)
{
this.WarrantyDateToVend = max(this.WarrantyDateToVend, this.parmWarrantyVend().endWarrantyDate(this.WarrantyDateFromVend));
}
}
public EntAssetWarranty parmWarrantyVend()
{
return EntAssetWarranty::findRecId(this.WarrantyVend);
}
Bt endWarratydate() method is an internal method in EntAssetWarranty, so it is throwing an error that I can't use internal methods in another model. I want to know that is there any way to add WarrantyDateToVend() method in Data entity.