Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Acumatica 如何在POReceipt屏幕中调用按Cancel_Acumatica - Fatal编程技术网

Acumatica 如何在POReceipt屏幕中调用按Cancel

Acumatica 如何在POReceipt屏幕中调用按Cancel,acumatica,Acumatica,在我的Porecipentry扩展中,我希望调用Base.Actions.PressCancel。但是出现了一个错误。 无法将类型为“PX.Objects.PO.POReceipt”的对象强制转换为类型为“PX.Data.PXResult`2[PX.Objects.PO.POReceipt,PX.Objects.AP.Vendor]”。 似乎取消操作是在POReceptEntry图中重新定义的,而不是在基本图对象中。目标是在例程结束时放弃任何更改,并从数据库加载收据记录。也许我应该清除所有缓

在我的Porecipentry扩展中,我希望调用Base.Actions.PressCancel。但是出现了一个错误。

无法将类型为“PX.Objects.PO.POReceipt”的对象强制转换为类型为“PX.Data.PXResult`2[PX.Objects.PO.POReceipt,PX.Objects.AP.Vendor]”。


似乎取消操作是在POReceptEntry图中重新定义的,而不是在基本图对象中。目标是在例程结束时放弃任何更改,并从数据库加载收据记录。也许我应该清除所有缓存对象,并在文档中指定当前参数?我不确定。顺便说一句,我使用的6.10版应该是Base.Actions.PressCancel()。你能包括你试图运行的代码吗?你能跟踪堆栈后的错误吗?很可能这是你在PorecipEntry Cancel事件处理程序中点击的那一行:foreach(PXResult它in(new PXCancel(this,“Cancel”))。按(adapter))。在我看来,这像是一个bug。我在Acumatica创建了一个案例