开发者

Forms opening in the background in 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 programa开发者_如何学JAVAtically?


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.


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

    public void activate(boolean _active)
{
    ;
//    if (_active)
//        PUL_Modal::construct().hookModal(this);

    super(_active);
/* 
    if (_active)
        PUL_Modal::construct().checkModal(this);
*/

}

This returns the activate method to its previous state and prevents forms from going modal.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜