【发布时间】:2018-04-20 17:17:21
【问题描述】:
我在销售订单页面中覆盖了 CustomerID 的字段更新事件,该页面显示了一个带有自定义字段 UsrCustomerNote 的弹出窗口,用于更新目的。它在网络上运行良好。但是,问题是我想防止在 acumatica 移动应用程序中弹出。我该怎么做呢?这是加载弹出窗口的代码。
BAccountEnq bAccountEnq = PXGraph.CreateInstance<BAccountEnq>();
BAccount bAccount = PXSelect<BAccount, Where<BAccount.bAccountID, Equal<Required<BAccount.bAccountID>>>>.Select(bAccountEnq, row.CustomerID);
var customerNote = (string)bAccount.GetExtension<PX.Objects.CR.BAccountExt>().UsrCustomerNote;
if (!string.IsNullOrEmpty(customerNote))
{
if (CustomerSelector.AskExt(
delegate
{
CustomerSelector.Current.GetExtension<PX.Objects.CR.BAccountExt>().UsrCustomerNote = customerNote;
CustomerSelector.Cache.Update(CustomerSelector.Current);
}) == WebDialogResult.OK)
{
IsOKToUpdate = true;
}
}
而且,这是由弹出窗口引起的错误。
我希望在 Web 上进行此自定义,而不是在移动设备上保留 Field Updated 事件的 Base 方法。我的意思是不完全禁用该事件,而只是阻止在移动设备中加载弹出窗口。
谢谢!
【问题讨论】:
标签: acumatica