Coder Social home page Coder Social logo

Comments (7)

pofider avatar pofider commented on September 3, 2024

Thank you for submitting issue. I can confirm this feature doesn't work with IE. We may later try to fix it. However it doesn't have high priority for us because jsreport studio is a tool for developers and developers normally don't use IE because there are much better options.

from jsreport-studio.

fmmich avatar fmmich commented on September 3, 2024

As a developer, I concur. At some of our customers where we deploy Jsreport (thru our royalty-free license), their IT departments prohibit browsers other than IE. For those sites, we will replace the "data" directory manually as described above.

from jsreport-studio.

pofider avatar pofider commented on September 3, 2024

ah I see..... and you otherwise do it manually through studio anyway? customer by customer? Maybe you could use an API rather for it?

We will try to at least estimate what it would take it to have it working in IE for the start. I see we use there FileReader.readAsArrayBuffer which likely doesn't work there, maybe there will be a polyfill.
https://github.com/jsreport/jsreport-import-export/blob/master/studio/ImportModal.js#L33

from jsreport-studio.

fmmich avatar fmmich commented on September 3, 2024

Some background: Our customers are hospitals. Data security is a huge concern. Therefore, we design their reports internally using make-believe data. When their reports are ready for deployment, we securely VPN into a server on-premise at the hospital, import their reports with Jsreport Studio, and test the reports on-premise using their real patient data. If there is a problem with the report using their real data, we have Jsreport Studio already right in front of us, so we'll make the corrections there, validate they work, and export the entity changes back here. We import the changes into our internal Jsreport Studio and commit the entire data folder to our source control. That is why I bug you and your staff about how valuable jsreport-import-export is for our company. :)

In IE, the exception occurs after clicking Validate but prior to selecting the zip file to import. It is possible a polyfill may be required for readAsArrayBuffer, but the exception is much prior to that. The exception is occurring in the compiled code of React's ReactErrorUtils.js. Jsreport Studio is using React 0.14.8, but the next version after that release is 0.15.0, which doesn't have that class anymore. Hope this helps.

from jsreport-studio.

pofider avatar pofider commented on September 3, 2024

Thank you for explanation. I now see that if you anyway need to open their studio that it makes sense to import it manually right away.

I run it in debug mode now and see the real error is in

this.refs.file.dispatchEvent(new MouseEvent('click', {
        'view': window,
        'bubbles': false,
        'cancelable': true
      }));

Object doesn't support this action
Some solution like this could work... just checking it and let you know
https://stackoverflow.com/a/32889608/1660996

from jsreport-studio.

fmmich avatar fmmich commented on September 3, 2024

Ah, IE11 doesn't like "new MouseEvent"... there's a polyfill for MouseEvent if you use it in multiple places: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent#Polyfill

from jsreport-studio.

pofider avatar pofider commented on September 3, 2024

Thanks for that.

The importing is now fixed in [email protected] which will be part of the upcoming [email protected].

There are still plenty of issues with IE, but I hope this helps you to overcome the biggest problem you had.

from jsreport-studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.