If code doesn't work as expected, you should debug it. Look at which line of code is opening the form and evaluate it. You may find that you somewhere call QueryRun.run(), for example. If you find that it's executed by AX kernel, check if your report doesn't have Interactive property = Yes.
↧