Forum Discussion

AngelaIp's avatar
AngelaIp
Ideator I
7 years ago
Solved

How to avoid the additional helper window when creating a report?

Hi, this is not really an urgent topic, but it´s something I wanted to ask for an eternity. When we create a new Report (e.g. Multilevel BOM Report), we will always get an additional empty tab th...
  • christopher_gillis's avatar
    christopher_gillis
    7 years ago

    Thanks for clarifying. :) I haven't played around with SSRS too much, but it might be possible to add some code wherever this tab is opened to programmatically close it once the report is downloaded. After some digging with the chrome dev tools, it looks like this tab is opened with aras.targetReport which can be found in your codetree under ./Innovator/Client/javascript/aras_object.js .

    If closing the tab proves to be too troublesome, you can also try deleting the two bolded lines below from this file (these were found near line 2029 in my 11.0 SP12 codetree):

            if (report_location !== 'service') {
                win.document.write(results);
                win.document.write('<br>');
                win.document.body.style.background = '#fff';
            }

    Removing this if statement should cause the new tab to be drawn with a completely white background. Users will still need to close the tab manually, but it should help confusion as the tab won't look like the main grid.

    Chris