I'm new to AX and I'm in the process of trying to learn how insertUpdate() in DMFEntityBase works. However, it looks like every time I close my instance of AX, AX seems to forget that I overrode the method. A quick background:
- I've created a custom entity based on ForecastSales table using the provided wizard (to import data via DIXF).
- The wizard created a private project DMFForecastSalesEntity that contained the DMFForecastSalesEntityClass class.
- In this class I chose to override the insertUpdate() method.
After a few confusing session, I made a very simple test by simply changing
public Common insertUpdate(Common _target, boolean _callInsertLogic = false, boolean _callValidateLogic = false)
{
Common ret;
ret = super(_target, _callInsertLogic, _callValidateLogic);
return ret;
}
to (addition emphasize in red)
public Common insertUpdate(Common _target, boolean _callInsertLogic = false, boolean _callValidateLogic = false)
{
Common ret;
info('testing!');
ret = super(_target, _callInsertLogic, _callValidateLogic);
return ret;
}
After making, saving and compiling the change, importing via DIXF will display the info as expected. However, if I close AX, reopen AX, and import again, the info will NOT display until I compile the class again.
I've already tried compiling the class and the entire project, but so far avoided compiling the entire AOT (it takes 2-3 hours). Is compiling the entire AOT the key to this or am I missing something?