Array Expansion prototype cause the report can not be displa

Stimulsoft Reports.WEB discussion
Post Reply
wangzhu
Posts: 2
Joined: Fri Sep 11, 2015 6:21 am

Array Expansion prototype cause the report can not be displa

Post by wangzhu »

If I did the following work,report will not be displayed.

Code: Select all

    Array.prototype.max = function () {
        return Math.max.apply({}, this);
    }
Uncaught TypeError: Cannot read property 'innerTable' of undefined
121.png
121.png (4.74 KiB) Viewed 1034 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Array Expansion prototype cause the report can not be di

Post by HighAley »

Hello.

Please, send us more information about the issue.
What Viewer or Designer do you use?
Could you send us a sample project which reproduces the issue?

Thank you.
wangzhu
Posts: 2
Joined: Fri Sep 11, 2015 6:21 am

Re: Array Expansion prototype cause the report can not be di

Post by wangzhu »

Using Chrome,VS2013,MVC,Stimulsoft-Reports-Ultimate-2015.1
Cause of the error has been found.
If I extend prototype array, it will lead to for...in statement can not be executed properly
Last edited by wangzhu on Wed Sep 16, 2015 9:51 am, edited 1 time in total.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Array Expansion prototype cause the report can not be di

Post by HighAley »

Hello.

Could you specify which Viewer or Designer do you use?
What version of our product do you use?

Thank you.
Post Reply