Summary:-
Many times it is needed to display multiple reports on screen. In standard Dynamics AX 2012, if you try to call multiple times, a report; it will open 2nd report, after 1st instance of report viewer is closed. A user may be looking for, display of multiple instances at same time, without closing other.
Resolution/Solution:
To achieve this we need to override dialogShow() on Controller Class.
Below is the example code
protected void dialogShow() { SysOperationDialog sysOperationDialog; FormRun formRun; dialog.run(); this.dialogPostRun(); // Get formrun and detach the formrun object, so not blocking. sysOperationDialog = dialog as SysOperationDialog; formRun = sysOperationDialog.formRun(); formRun.detach(); }
In addition also override dialogClose() and remove super() call
protected void dialogClose() { //super(); }
References:
https://msdn.microsoft.com/en-us/library/srsprintmgmtcontroller.dialogshow.aspx
*This post is locked for comments