error loading mrt file to the viewer (Latest build)

Stimulsoft Reports.JS discussion
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

error loading mrt file to the viewer (Latest build)

Post by jpgb »

Error while loading any mrt map to the viewer:

InvalidCharacterError: String contains an invalid character

stimuls...orts.js (linha 154)

Went back to another version and it is working

JB
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: error loading mrt file to the viewer (Latest build)

Post by HighAley »

Hello.

Could you specify the exact version of our product?
Please, send the report template that you get the error with.

Thank you.
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

Re: error loading mrt file to the viewer (Latest build)

Post by jpgb »

it was giving this error with 12.02.20017 build.

with 15.02.2017 build the error is now:

TypeError: S[D] is undefined

It happens when i load the map into the viewer

In build JS_2017.01.29 it works fine.

JB
Attachments
ClientesS.mrt
(32.26 KiB) Downloaded 243 times
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

Re: error loading mrt file to the viewer (Latest build)

Post by jpgb »

I forgot to mention that its probable a duplicate of "Report problem build 2016.3.8" problem

JB
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: error loading mrt file to the viewer (Latest build)

Post by HighAley »

Hello.

Could you send us sample data for you report that will help us to reproduce the issue?

Thank you,
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

Re: error loading mrt file to the viewer (Latest build)

Post by jpgb »

In the last version (17.02) the last error doesnt exist anymore.

But the viewer is not showing all the report, somehow part of it is now invisible.
modal.jpg
modal.jpg (214.67 KiB) Viewed 4886 times

Im using it in a modal form, and it works fine in JS_2017.01.29

Image and json data attached.

Any ideas?
Thanks
JB
Attachments
jsondata.txt
(9.22 KiB) Downloaded 221 times
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

Re: error loading mrt file to the viewer (Latest build)

Post by jpgb »

Well...in the latest version this html

<div id="StiViewerReportPanel" class="stiJsViewerReportPanel" style="text-align: center; bottom: 0px; position: relative; top: 0px; overflow: hidden; margin-top: 0px;">

was changed to

<div id="StiViewerReportPanel" class="stiJsViewerReportPanel" style="text-align: center; bottom: 0px; position: absolute; top: 35px; overflow: hidden; margin-top: 0px;">

and this is what's causing the problem...
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: error loading mrt file to the viewer (Latest build)

Post by HighAley »

Hello.

Yes, the style could cause such issue.

Thank you.
jpgb
Posts: 67
Joined: Tue Mar 15, 2016 11:42 am

Re: error loading mrt file to the viewer (Latest build)

Post by jpgb »

HigAley is there any workaround for this issue in a bootstrap modal?

I know i can execute
$("#StiViewerReportPanel").attr("style","text-align: center; bottom: 0px; position: relative; top: 0px; overflow: hidden; margin-top: 0px;");

it goes back to normal, but after the report is rendered the top goes back to 35px, something in your script is changing it, and we dont have an event for after report is rendered...

thanks
JB
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: error loading mrt file to the viewer (Latest build)

Post by HighAley »

Hello.

We are very sorry, but our product was not tested with the bootstrap modal.
You could try to find a solution on your side and share it with us.

Thank you.
Post Reply