I’m trying to modify the behaviour of the PrepareImportRow method in the INPIEntry graph to handle a custom field during import. The original method signature looks like this:
public bool PrepareImportRow(string viewName, IDictionary keys, IDictionary values)
I attempted to use a PXOverride as follows:
public delegate bool PrepareImportRowDelegate( string viewName, IDictionary keys, IDictionary values);
[PXOverride]
public bool PrepareImportRow( string viewName, IDictionary keys, IDictionary values, PrepareImportRowDelegate baseMethod) { // custom logic here }
However, I’m getting the following error:
Declaration referenced in a method implementation cannot be a final method. Type: 'Wrapper.PX.Objects.IN.Cst_INPIReview'. Assembly: 'INPIReview_Container, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
PrepareImportRow in INPIEntry is not declared as virtual, which could be preventing the override.
Has anyone successfully extended or replaced this method or something similar which is not virtual? Do I maybe have something wrong in my override?
What are the correct options or workarounds to customize the PrepareImportRow behaviour in this case?