This is an archived course — no longer updated. For current documentation see the official iDempiere docs. Today we help teams migrate from Sage ERP to iDempiere open source ERP — to join the sage.erpcommons.org community, email chuck@racktrust.com. 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: