acumatica - 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 从其他页面打开时,参考字段为空白,而如果在打开或从侧面地图打开后刷新它,它会按预期工作。
代码有什么问题?
解决方案
在 Order 的 aspx 页面上,确保 pxdatasource.PageLoadBehavior 为“PopulateSavedValues”
推荐阅读
- java - Java中的Leetcode排列问题!列表在这个问题中是如何工作的?
- javascript - 接收二维数组 args 作为 js.Value 并想要一个数组 ([]js.Value)
- ruby-on-rails - Rails 应用程序内的 Rails 引擎中的继承
- c# - 分别从 PowerShell 和 PowerShell 的 C# .Net 库生成的访问令牌长度的差异
- javascript - 将数据传递给 javascript 但有很多反斜杠
- c# - 如何从 C# 中的表达式中提取所有属性访问语句?
- python - 数据框的不等式
- plsql - 选择所有 oracle pl-sql 对象依赖项
- javascript - 如何在每个函数中设置仅索引一个项目
- c++ - 我的设备上的 c++ 编译器版本是什么