在 AX 2009 中后台打开表单
有时,当打开表单或单击表单上的对象时,表单会变为非活动状态或在后台打开。有没有办法防止这种情况以编程方式发生?
Sometimes when opening a form or when clicking on an object on the form, the form goes inactive or opens in the background. Is there a way to prevent this from occurring programatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我时常看到这种情况,但我没有任何记录的解决方案。
您可以尝试清除用户 AUC 缓存 看看是否有帮助。
I have seen this from time to time, but I don't have any documented solution.
You could try to clear the users AUC cache and see if that helps.
我已经找到了这个问题的答案。它与我们安装的第 3 方添加项 (IEM) 有关。我必须删除他们将表单设置为模态的一些代码(由于 AX 中的基本超时功能,最终将它们置于后台,因为使表单模态的代码执行时间太长)。我必须对 Classes/SysSetupFormRun 进行更改:下面是代码以及更改的位置
这会将 activate 方法返回到其之前的状态并防止表单进入模式。
I have found the answer to this question. It is related to a 3rd party addition that we have installed (IEM). I had to remove some code that they have that sets forms as modal (which ends up putting them in the background because of the base timeout function in AX because the code to make the form modal takes too long to execute). I had to make a change to Classes/SysSetupFormRun: Below is the code and where it was changed
This returns the activate method to its previous state and prevents forms from going modal.