Acumatica-参考字段数据

问题描述 投票:0回答:1

我有一个表单详细信息页面(订单),其中表单区域包含作为参考数据的数据,例如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
1个回答
0
投票

在订单的aspx页面上,确保pxdatasource.PageLoadBehavior是'PopulateSavedValues'

© www.soinside.com 2019 - 2024. All rights reserved.