This is an archived course — no longer updated. Instead, we’re building a community that helps Sage, Infor, and NetSuite users move to iDempiere open source ERP — do more, move faster, at 1/10th the cost. Read the full story →

iModelFactory - Extending an Existing Model with New Fields

The purpose of this page is to illustrate to how use the iModelFactory to extend an existing model with new fields. The community helped me solve this challenge; therefore, I left the solution in the community. https://groups.google.com/d/msg/idempiere/kPGbrO0WTjE/-tCuduy9KBEJ The old way of loading a model does not work with IModelFactory. Instead, you should use the following style (offered as an example):
MRMALine rLine = (MRMALine) MTable.get(getCtx(), MRMALine.Table_ID).getPO(sLine.getM_RMALine_ID(), get_TrxName());
Other References: