Acumatica 防止在手机中加载弹出窗口

Acumatica 防止在手机中加载弹出窗口,acumatica,Acumatica,我已覆盖销售订单页面中CustomerID的字段更新事件,该页面显示一个弹出窗口,其中包含自定义字段UsrCustomerNote,用于更新。它在网络上运行良好。但是,问题是我想防止acumatica移动应用程序中出现弹出窗口。我该怎么做?下面是加载弹出窗口的代码 BAccountEnq bAccountEnq = PXGraph.CreateInstance<BAccountEnq>(); BAccount bAccount = PX

我已覆盖销售订单页面中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;
                }
            }
BAccountEnq BAccountEnq=PXGraph.CreateInstance();
BAccount BAccount=PXSelect.Select(bAccountEnq,row.CustomerID);
var customerNote=(字符串)bAccount.GetExtension().UsrCustomerNote;
如果(!string.IsNullOrEmpty(customerNote))
{
如果(CustomerSelector.AskExt(
代表
{
CustomerSelector.Current.GetExtension().UsrCustomerNote=customerNote;
CustomerSelector.Cache.Update(CustomerSelector.Current);
})==WebDialogResult.OK)
{
IsOKToUpdate=true;
}
}
以下是它在web上的外观:

下面是弹出窗口导致的错误

我希望这种定制在web上,而不是在移动设备上保持字段更新事件的基本方法。我的意思是,不要完全禁用事件,而只是防止在移动设备中加载弹出窗口

谢谢


在图形扩展中,检查flag Base.IsMobile。你可以用它把你的逻辑分支到现场!这正是我想要的。谢谢。