Hi,
I have added a custom field to the ARTran table but I am getting an error when trying to access the extension of this table to update this custom field via code.
I imagine I need to replace ‘ARTran’ with something else, but not sure what it would be.
Here is the code I am currently using to access this extension:
var row = (ARTran)e.Row;
ARTran rowExt = row.GetExtension<ARTran>();
And here is the error I get:
\App_Code\Caches\ARInvoiceEntry.cs(55): error CS0311: The type 'PX.Objects.AR.ARTran' cannot be used as type parameter 'TExtension' in the generic type or method 'PXCacheEx.GetExtension<TExtension>(IBqlTable)'. There is no implicit reference conversion from 'PX.Objects.AR.ARTran' to 'PX.Data.PXCacheExtension'.
What do you suggest I replace ARTran with to access the custom field via the extension?
Kind regards,
Andrew