【发布时间】:2018-12-01 02:10:44
【问题描述】:
我在 items 表中添加了一些字段。当 SOLine 更新时,我需要能够从代码中引用这些字段。
我有一个正常工作的 PXSelect,并为我提供了一个 InventoryItem,但显然我需要在 Ext 部分(AKA,返回一个 InventoryItemExt),但我不清楚我是如何让 PXSelect 做到这一点的。
这将返回我需要的项目:
InventoryItem iiTheItem = PXSelect<InventoryItem, Where<InventoryItem.inventoryID, Equal<Required<InventoryItem.inventoryID>>>>.Select(Base, row.InventoryID);
但在这里失败:
dQPI = Convert.ToDecimal(iiTheItemExt.UsrLbsPerInch);
如果我将变量设置为 ext,它可以在语法上工作,但显然什么也不加载。
InventoryItemExt iiTheItemExt = null;
dQPI = Convert.ToDecimal(iiTheItemExt.UsrLbsPerInch);
如何连接 PXSelect 和我需要的类?提前致谢!
【问题讨论】:
标签: acumatica