StiMvcViewer bug

Stimulsoft Reports.WEB discussion
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: StiMvcViewer bug

Post by brianj774 »

with the 1512 release, I continue to get the

SecurityError: The operation is insecure.
len = arr.length;

I'm wondering if this might be some kind of issue with scripts loading out of sequence? Here's my "report" page....

Oh, and another detail I think should be mentioned: this app is havily dependent on jQueryMobile. Perhaps that has something to do with the issue we are seeing (though that doesn't really explain why the 'Fx' versions of these calls all work right.

==================================================

Code: Select all

@model myApp.DAL.tblReport
@using System.Web.UI.WebControls;
@using Stimulsoft.Report.Mvc

@{
	ViewBag.Title = "Report";
}



<div id="reportPanel" style="height: 100%; width: 100%;">

	@Html.Stimulsoft().RenderMvcViewerScripts()
	@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {
		ActionGetReportSnapshot = "GetReportSnapshot",
		ActionExportReport = "ExportReport",

		Width = Unit.Percentage(100),
		Height = Unit.Pixel(800)
	})
</div>
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: StiMvcViewer bug

Post by brianj774 »

getting closer....

So, as I was typing the above message, I remembered that when I originally wrote that code, that the documentation said that I should put the "RenderMvcViewerScripts()" in the html head tag. I went back, reread the documentation, verified it as true.

Then, I modified the code at the top of my render form to look like this:

Code: Select all

@{
	Layout = "_Layout_Reports.cshtml";
	ViewBag.Title = "Report";
}
Then I created a special Layout (_Layout_Reports.cshtml) file, installed the "RenderMvcViewerScripts()" in the html head tag, and removed jqueryMobile and all other scripts.

Now when I generate a new report...it still fails, saying that it can't find the MVC object. (ReferenceError: StiMvcViewer is not defined)

BUT, if I navigate directly to the page (bypassing all the jquerymobile stuff) I can actually get the report to render. It won't print, and is VERY flakey (zoom change loses the report and can't get it back, etc). But at least I can see the report.

So, whatever is wrong is somehow tied to my use of jquery mobile....any ideas?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiMvcViewer bug

Post by HighAley »

Hello.

The RenderMvcViewerScripts() wethod should be in the <head> element.
Please, send us a sample project, where this script are used and the preoblem could be reproduced.
We will try to fix it as fast as possible.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: StiMvcViewer bug

Post by brianj774 »

Aleksey, I think you misread my post. I got as far as I did by putting "RenderMvcViewerScripts()" in the head...

I'm still having difficulties with jqm transition to a report 'page' however.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

Re: StiMvcViewer bug

Post by brianj774 »

From what I'm seeing, and I don't know how to describe it very well, neither the MvcViewer or MvcViewerFx scripts work from jquerymobile page transitions. However, contrary to the documentation, the Fx script versions seem to run just fine from deep in the page, while the non-Fx version fail at that point.

They both work from within the head tag, but ONLY on a full DOM reload.... I'm going to start a new thread for this issue.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: StiMvcViewer bug

Post by Vladimir »

Hello,

We will answer in this forum topic:
http://forum.stimulsoft.com/viewtopic.php?f=14&t=36321

Thank you.
Post Reply