首页 > 解决方案 > Acumatica- 参考字段数据

问题描述

我有一个表单详细信息页面(订单),其中表单区域的数据是参考数据,例如 InventoryItem_Descr

订单页面的图表具有主视图查询 -

public PXSelectJoin<Order, LeftJoin<InventoryItem, On<Order.inventoryID, Equal<InventoryItem.inventoryID>>>>> QCOrders;

在其他页面上用于打开订单页面的代码 -

OrderEntry graph = PXGraph.CreateInstance<OrderEntry>(); graph.Orders.Current = null; graph.Orders.Current = (PXResult<Order, InventoryItem>)graph.QCOrders.Search<Order.OrderCD>(OrderNumber); if(graph.QCOrders.Current != null) { throw new PXRedirectRequiredException(graph, "Order Detail", true) { Mode = PXBaseRedirectException.WindowMode.InlineWindow };
}

问题 - 当页面通过 PXRedirectException 从其他页面打开时,参考字段为空白,而如果在打开或从侧面地图打开后刷新它,它会按预期工作。

代码有什么问题?

标签: acumatica

解决方案


在 Order 的 aspx 页面上,确保 pxdatasource.PageLoadBehavior 为“PopulateSavedValues”


推荐阅读