Hi Team,
I am trying to use flexmonster reports from inside a SWT browser, which internally uses IE browser present on system.
I noticed that Charts and export to PDF functionality doesn't work inside SWT browser unless we do one thing: access the same report on IE11. After that when we freshly access the same page on SWT browser, both the functionalities seem to work fine.
I compared the HTML source for both the cases and they are absolutely same.
Could you please help ?
Thanks and Regards
Ganesh
Hi Ganesh!
Honestly saying SWT browser is quite unpopular among our customers and it's probably the first request for this browser.
We will investigate the issue and inform you about the progress.
Thanks,
Tanya
Hi Team, any updates on this ?
Hello Ganesh,
Thank you for writing. We are still in the investigation process. Could please give us some more specific details? Are there any errors in the stack trace? Do you have any specific configurations for the Eclipse IDE? For now, we recommend you checking the latest version of the IDE. Also, you can try using some other browser as the default.
Waiting for the update from you.
Regards,
Dmytro.
Hi Dmytro,
The root cause behind this is: When we open the page in IE 11 and click on Charts, d3.min.js file is loaded and kept in temporary web files location (%userName%\AppData\Local\Microsoft\Windows\Temporary Internet Files) and the functionality runs in both SWT and IE browser. When we close IE (or don't launch this page in IE at all), this file is deleted and it is not loaded in case we open the page in SWT browser, so charts doesn't work. Do you think of any workaround ?
Thanks
Hi, one more update: I tried including d3.min.js in the html page itself:
<script type="text/javascript" src="flexmonster/lib/d3.min.js"></script>
and the charts worked in SWT browser.
Similar behaviour is for export PDF functionality as well.
So the main issue is javascript files are not loaded from within flexmonster.js in SWT browser, but if we include them in html page itself, the functionalities work.
Can we include all the required .js files in html page itself ?
Hello Ganesh,
Thank you for the update from you. It is nice to hear that you have found a suitable workaround. Yes, you can include all the required files in HTML file.
Regards,
Dmytro.