使用onclosingpop在弹出窗口关闭时执行功能

时间:2018-10-19 20:48:21

标签: acumatica

我有一个打开日记条目图的按钮,然后关闭它,我想在我的原始屏幕上启动另一个功能。

这就是我尝试过的:

        public PXAction<AccountByPeriodFilter> Process;
        [PXUIField(DisplayName = LE.ActionsMessages.Process, MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Update)]
        [PXButton(CommitChanges = true, OnClosingPopup = PXSpecialButtonType.Approve)]
        public virtual void process()
        {
            dostuff(); // opens the journalentry popup
        }

        public PXAction<AccountByPeriodFilter> Process2;
        [PXUIField(DisplayName = LE.ActionsMessages.Process2, MapEnableRights = PXCacheRights.Update, MapViewRights = PXCacheRights.Update)]
        [PXButton(CommitChanges = true, SpecialType = PXSpecialButtonType.Approve)]
        public virtual void process2()
        {
            dostuff2(); 
        }

据我了解,在关闭弹出窗口时,该框架应该调用其找到的类型为“批准”的第一个按钮。但就我而言,它什么都不做。

我想念什么?

当我使用“ OnClosingPopup = PXSpecialButtonType.Refresh”时,它可以正常工作(但我不想只是刷新屏幕,也许我应该重写此屏幕上的刷新按钮?)

此致

0 个答案:

没有答案