Get Persitant Object by Table ID

28 views
Skip to first unread message

Tomáš Švikruha

unread,
Jan 9, 2015, 6:40:11 AM1/9/15
to idem...@googlegroups.com
Hi iDempiere developers,

we are still working on Replication and discovered next issue. In ImportHelper.java there is a line to initialize PO by table ID:

PO po = MTable.get(ctx, expFormat.getAD_Table_ID()).getPO(0,trxName);

MTable is initialized with specified ctx but PO is created with Env.getCtx() context. MTable uses IModelFactory interface where is no place to set ctx (only trx)... This leads that initialized PO has unwanted values (like AD_Client, Created, CreatedBy etc..)

Have som ideas how can be PO initialized with specified context?

Thanks for reply

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees and may not be reviewed or used in any way by other recipients. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message and any attachments thereto from your system.
Reply all
Reply to author
Forward
0 new messages